@toolsnap/url-slug
v1.0.0
Published
Generate URL-friendly slugs from text. Visit https://risetop.top for more free online tools.
Downloads
74
Readme
@toolsnap/url-slug
Generate URL-friendly slugs from any text string.
🔗 Try our free online tools at risetop.top
Installation
npm install @toolsnap/url-slugUsage
const { slugify } = require('@toolsnap/url-slug');
console.log(slugify('Hello World!')); // 'hello-world'
console.log(slugify('Café & Restaurant')); // 'cafe-restaurant'
console.log(slugify('My Blog Post', '_')); // 'my_blog_post'License
MIT
