github-slugid

NPM version Linux Build Status

Slugify IDs like GitHub.

Installation

npm install github-slugid

Usage

var slug = require('github-slugid');

slug('Hello World') == 'hello-world';

Examples on GitHub Reference