slugify3
v0.0.4
Published
Unidecode based slugify implementation and CLI tool for file renaming
Readme
slugify3
Unidecode based slugify implementation and CLI tool for file renaming.
This slugify implementation is unique in the way that uses unidecode transliteration table. It tries to transliterate non-ascii symbols first before omitting them.
Installation
Install as dependency:
npm install slugify3
Install as CLI tool:
npm install -g slugify3
How to use
var slugify = require('slugify3');
slugify('Language Learning and Teaching');
slugify('Изучение и обучение иностранных языков', '+');
slugify('語文教學・语文教学');API
slugify(string, separator)
stringString - an unicode string to slugifyseparatorString, - optional, default "-", a replacement character for non-ascii symbols and spaces
CLI
Usage: slugify [OPTIONS] FILE
Options:
-e lowercase file extensionLicense
MIT
