Skip to content

The slugging function we use for Segment projects, usernames, etc.

Notifications You must be signed in to change notification settings

segment-boneyard/slug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

slug

The slugging function we use for Segment.io projects, usernames, etc.

Installation

$ component install segmentio/slug

Example

var slug = require('slug');

slug('Pets.com');          // "pets.com"
slug('American Airlines'); // "american-airlines"
slug('@mention');          // "mention"

API

slug(string)

Convert the given string to a slug.

License

MIT

About

The slugging function we use for Segment projects, usernames, etc.

Resources

Stars

Watchers

Forks

Packages

No packages published