limax
(Yet another) Node.js module to generate URL slugs,
also known as clean URLs, user-friendly URLs and SEO-friendly URLs.
The difference?
This module extends the fantastic
speakingurl
module to include Romanisation of Chinese and Japanese scripts.
Give it a string of text in pretty much any major world language
and it will convert it to valid characters,
conforming to RFC3986,
for use within the path element of a URL.
Currently supports, but not limited to, the following scripts:
- Latin: e.g. English, français, Deutsch, español, português
- Cyrillic: e.g. русский язык, български език, українська мова
- Chinese: e.g. 官话, 吴语 (converts to Latin script using Pinyin with optional tone number)
- Japanese: e.g. ひらがな, カタカナ (converts to Romaji using Hepburn)
If you already use either the
speakingurl or
slug modules,
you can probably swap in limax without changing the logic in your code.
Oh, and limax is the Latin word for slug.