@subasshrestha/unique-slug
v1.0.1
Published
Generate a unique slug for a given string by appending random string at the end
Downloads
3
Readme
@subasshrestha/unique-slug
Generate a unique slug for a given string by appending random string at the end
const { slugify, slugifyWithoutRandomText } = require('@subasshrestha/unique-slug');
console.log(slugify("Text for slug"));
// "text-for-slug-aTyp-uYrt"
console.log(slugifyWithoutRandomText("Text for slug"));
// "text-for-slug"