slugify
Generate a slug from a string.
Install
npm i @binance-academy/slugify
# -or-
yarn add @binance-academy/slugify
Usage
import slugify from "@binance-academy/slugify";
// Output: aaaa
const slug = slugify("aaaa---$%#");
Note: If you want to see more examples, please head over here.