Mongez Slug
A utility to generate route slug.
Installation
yarn add @mongez/slug
Or
npm i @mongez/slug
Usage
import slug from "@mongez/slug";
// OR
import { slugify } from "@mongez/slug";
slug("hello-world"); // hello-world
TODO
- Add unit tests
A utility to generate route slug.
yarn add @mongez/slug
Or
npm i @mongez/slug
import slug from "@mongez/slug";
// OR
import { slugify } from "@mongez/slug";
slug("hello-world"); // hello-world
npm i @mongez/slug
1
1.0.7
MIT
2.97 kB
13