Package Exports
- slug
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (slug) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
slugify string
slugifies every string, even when it contains unicode!
example
master//node-slug » node
> slug = require ('./slug')
> slug('i ♥ unicode')
'i-love-unicode'
> slug('i ♥ unicode', '_') # If you prefer something else then `-` as seperator
'i_love_unicode'
> slug.charmap['♥'] = 'freaking love' # change default charmap or use option {charmap:{…}} as 2. argument
> slug('I ♥ UNICODE').toLowerCase() # If you prefer lower case
'i-freaking-love-unicode'