Advertise here

slugify – Slugify a String with Javascript

May 09, 2018     428     Text & String
slugify – Slugify a String with Javascript

slugify is a javascript library to slugify string. It's useful for URLs, filenames, and IDs.

Usage:

slugify('I ♥ Dogs');  //=> 'i-love-dogs'
slugify(' Déjà Vu! '); //=> 'deja-vu'
slugify('fooBar 123 $#%'); //=> 'foo-bar-123'
slugify('BAR and baz', {separator: '_'}); //=> 'bar_and_baz'

Related Plugins

Latest Plugins


Subscribe to Newsletter

Subscribe to email newsletter for latest jQuery plugins & tutorials.



AdvertisementAdvertise with us!