alexcarpenter / slugify

Convert a string into a slug

Home Page:https://npm.im/@alexcarpenter/slugify

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Convert a string into a slug

https://npm.im/@alexcarpenter/slugify

License:MIT License


Languages

Language:JavaScript 100.0%