import type { FnS , Stringer } from "./api.js" ; param x export const upper = ( x ) => x . toUpperCase ( ) ; param x export const lower = ( x ) => x . toLowerCase ( ) ; param x export const capitalize = ( x ) => x [ 0 ] . toUpperCase ( ) + x . substr ( 1 ) ; example param x param delim export const kebab = ( x , delim = "-" ) => lower ( x . replace ( /([a-z0-9\u00e0-\u00fd])([A-Z\u00c0-\u00dd])/g , ( _ , a , b ) => a + delim + b ) ) ; /**
 * Short for  kebab using `_` as delimiter.
 *
 *  param x export const snake = ( x ) => kebab ( x , "_" ) ; /**
 * Uppercase version of  snake .
 *
 *  param x export const upperSnake = ( x ) => snake ( x ) . toUpperCase ( ) ; param x param delim export const camel = ( x , delim = "-" ) => lower ( x ) . replace ( new RegExp ( `\\${ delim }+(\\w)` , "g" ) , ( _ , c ) => upper ( c ) ) ;