Skip to content

Instantly share code, notes, and snippets.

Avatar
🤓
Always Learning

Gabriel Froes gabrielfroes

🤓
Always Learning
View GitHub Profile
@gabrielfroes
gabrielfroes / slugify.js
Last active Jul 5, 2020 — forked from mathewbyrne/slugify.js
Javascript Slugify
View slugify.js
/*
Create SLUG from a string
This function rewrite the string prototype and also
replace latin and other special characters.
Forked by Gabriel Froes - https://gist.github.com/gabrielfroes
Original Author: Mathew Byrne - https://gist.github.com/mathewbyrne/1280286
*/
if (!String.prototype.slugify) {
String.prototype.slugify = function () {
You can’t perform that action at this time.