@jf/sep2cc

2.0.0 • Public • Published

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'
'-áááá-éééé-íí-óóó'             -> 'ÁáááÉéééÍíÓóó'

Package Sidebar

Install

npm i @jf/sep2cc

Weekly Downloads

0

Version

2.0.0

License

MIT

Unpacked Size

4.89 kB

Total Files

4

Last publish

Collaborators

  • jf