slugify

Slugifies a string.

npm install slugify
10 downloads in the last day
44 downloads in the last week
253 downloads in the last month

Slugify

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

Install

$ npm install slugify

Usage

var slugify = require('slugify');

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

Tests

$ mocha
npm loves you