what it does
no one wants %D0%9F%D1%80%D0%B8%D0%B2%D0%B5%D1%82 as a url.
four jobs. all in your terminal. no api call, no internet round-trip — just a plain tool that does what it says.
english
$ slugmint "Hello World"
hello-world
non-latin
$ slugmint "Привет мир"
privet-mir
max length
$ slugmint --max-len 20 "a really long title"
a-really-long-title
reserved words
$ slugmint --reserved 'api' "Api"
api-1
(suffix added to dodge collision)
(suffix added to dodge collision)
install
three ways. all painless.
npm
$ npm i -g @v0idd0/slugmint
node 14+ on linux / macos / windows. updates with npm update -g.
github releases
$ curl -L github.com/voidd0/slugmint/releases/latest
single static binary. zero runtime needed. all releases →
git clone
$ git clone github.com/voidd0/slugmint
read the source, send a pr, fork it. mit licence, no cla. repo →
why we built it
users paste cyrillic / arabic / japanese titles into your CMS. you don’t want %D0%9F%D1%80%D0%B8%D0%B2%D0%B5%D1%82 in your urls. slugmint transliterates properly — and respects your reserved-word list.
no telemetry. no signup. 28 scripts supported out of the box. mit forever — the source is public and the npm package is yours to fork.