@shmush/slugger
v1.2.0
Published
This package easily converts blog titles to a slug that can be used in URLs
Downloads
2
Readme
slugger.js
Use Slugger to easily convert blog post titles to URL slugs. For example, "This amazing blog post" will become this-amazing-blog-post.
Example:
import slugger from '@shmush/slugger'
console.log(slugger('This amazing blog post') // Prints this-amazing-blog-post