node package manager

Introducing npm Enterprise add-ons. Integrate third-party dev tools into npm…


pure JavaScript url slug generator for Node.JS with minimal dependencies

Slugs for Node.JS

Pure JavaScript slug generator for Node.JS applications that need to use slugs.

var slugs = require("slugs")

console.log(slugs('Hi there! How are you!'));
//Writes hi-there-how-are-you to console

Currently deletes unicode characters altogether, rather than convert them to URL-friendly chars.

You can install node-slugs via NPM, like so:

npm install slugs

Licensed under Apache 2.0, see license.txt for details.