This package has been deprecated

Author message:

Migrated to @jf/sep2cc

sep2cc

1.0.1 • 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 sep2cc

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

3.53 kB

Total Files

4

Last publish

Collaborators

  • joaquinfq