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