slugify.js
Javascript slugify routine, handling diacritics / accents.
Includes an English - Diacritic map.
Extensible, so you can build your own diacritic map (locale).
Examples
Using the English locale
Slugify; // internationalizaetion Slugify; // cest-deja-lete Slugify; // y Slugify; // 東 Slugify; // kaantaa-jotain-minulle
Using NodeJS
var Slugify = ; Slugify; // slugify-this-for-me-please
NPM
Install with npm: npm install slugifyjs
Bower
Install with bower: bower install slugifyjs
Contributing
Use grunt dev
to test your changes with a version that is not uglified.
Use grunt
to compress an uglified file after you make changes.
Please do not submit a PR with a compiled file for dev.
Tests
Run npm test
to execute mocha tests.