2.0.0 • Published 5 years ago

@jf/sep2cc v2.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

sep2cc stable

npm install sep2cc

Transform a char separated string into a camelCase one using a custom separator and accepting unicode chars.

You can modify chars property for customizing the text transformations in your application.

Examples

toCamelCase

'onceuponatime'                 -> 'onceuponatime'
'once-upon-a-time'              -> 'onceUponATime'
'-once-upon-a-time'             -> 'OnceUponATime'
'-o-n-c-e -u-p-o-n -a -t-i-m-e' -> 'ONCE UPON A TIME'
'inner-h-t-m-l'                 -> 'innerHTML'
'-áááá-éééé-íí-óóó'             -> 'ÁáááÉéééÍíÓóó'