Skip to content
This repository has been archived by the owner on Apr 4, 2019. It is now read-only.

yields/slug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

slug

slug generator

Installation

$ component install yields/slug

API

slug(str[, opts])

slug('foo bar');
// > foo-bar
slug('foo bar', { separator: '_' });
// > foo_bar
slug('foo bar', { replace: /o/g });
// > f-bar

Tests

$ make test

License

MIT

About

slug component

Resources

Stars

Watchers

Forks

Packages

No packages published