@zkochan/pnpm
Version:
A fast implementation of npm install
33 lines (18 loc) • 639 B
Markdown
This is vanilla javascript port of [node-slug](https://github.com/dodo/node-slug) so all credits goes to [dodo](https://github.com/dodo). The only difference is that this port does not support unicode characters!
Use the original module [**slug**](https://www.npmjs.com/package/slug) instead as it's already been ported to vanilla javascript.
```bash
$ npm install slugify
```
```js
var slugify = require('slugify');
slugify('some string'); // returns some-string
slugify('some string', '_'); // if you prefer something else then '-' as seperator
```
```bash
$ mocha
```