JSPM

  • Created
  • Published
  • Downloads 5762948
  • Score
    100M100P100Q209110F
  • License MIT

Slugifies a string

Package Exports

  • slugify

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 (slugify) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

slugify

npm-version travis-ci coveralls-status

This is vanilla javascript port of node-slug so all credits goes to dodo. The only difference here is that this port does not support unicode characters!

var slugify = require('slugify')

// returns some-string
slugify('some string')

// if you prefer something else then '-' as seperator
slugify('some string', '_')

Note that the original module slug has been ported to vanilla javascript.