1.0.1 • Published 2 years ago
@subasshrestha/unique-slug v1.0.1
@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"