This package has been deprecated

Author message:

Migrated to @jf/cc2sep

cc2sep

1.0.2 • Public • Published

cc2sep stable

npm install cc2sep

Transform a camelized string into a lowercased one using a custom separator and accepting unicode uppercase chars.

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

Examples

cc2sep

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

cc2sep.trimmed

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

/cc2sep/

    Package Sidebar

    Install

    npm i cc2sep

    Weekly Downloads

    2

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    4.95 kB

    Total Files

    4

    Last publish

    Collaborators

    • joaquinfq