🐍 Sluggish slug generator that works universally
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
test
.editorconfig
.gitignore
.jshintignore
.jshintrc
changelog.markdown
license
package.json
readme.markdown
sluggish.js

readme.markdown

sluggish

Sluggish slug generator that works universally

Works well in browsers, as its footprint size is very small.

Install

npm install sluggish --save

Usage

sluggish('Hola mundo soy  -Awésome-')
<- 'hola-mundo-soy-awesome'

API

Using sluggish(text) yields a hyphenated slug that's meant to be used for a URL or an id attribute.

License

MIT