Skip to content

Opinionated Node.js function that returns a slug made only of lowercase letters, numbers and hyphens, from any string.

Notifications You must be signed in to change notification settings

antoinerousseau/hyphenslug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hyphenslug

npm-version

Opinionated Node.js function that returns a slug made only of lowercase letters, numbers and hyphens, from any string.

const hyphenslug = require('hyphenslug')

hyphenslug('I just want a simple URL slug!') // i-just-want-a-simple-url-slug
hyphenslug('unicode ♥ is ☢') // unicode-love-is-radioactive

Inspired by slug and slugify.

Might be too big to be used in the browser, since it relies on the unicode package.

About

Opinionated Node.js function that returns a slug made only of lowercase letters, numbers and hyphens, from any string.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published