slug-component

slug generator

npm install slug-component
16 downloads in the last day
118 downloads in the last week
495 downloads in the last month

slug

slug generator

Installation

$ component install yields/slug

API

slug(str[, replacement])

slug('foo bar');
// > foo-bar
slug('foo bar', '_');
// > foo_bar

Tests

$ make test

License

MIT

npm loves you