Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 301 Bytes

README.md

File metadata and controls

23 lines (15 loc) · 301 Bytes

slugify

Convert a string into a slug

Installation

$ npm i @alexcarpenter/slugify

Usage

import slugify from '@alexcarpenter/slugify';

slugify('dé jà vu'); // de-ja-vu
slugify('fooBar'); // foo-bar
slugify('foo 👻 bar'); // foo-bar

License

MIT.