The slugging function we use for Segment.io projects, usernames, etc.
$ component install segmentio/slug
var slug = require('slug');
slug('Pets.com'); // "pets.com"
slug('American Airlines'); // "american-airlines"
slug('@mention'); // "mention"
Convert the given string
to a slug.
MIT