1.0.1 • Published 6 years ago

transliterate-url-cyr-to-latin v1.0.1

Weekly downloads
2
License
ISC
Repository
github
Last release
6 years ago

Enable

to use at server side run:

nmp install transliterate-cyrillic-text-to-latin-url

to use in browser download this module refer to the file module/index.js using the src attribute in the script tag.

Usage

The module exposes transliterate function which should be called with one parameter of the type String. The function returns an output of the type String with all cyrillic characters replaced with latin characters. Example:

const result = transliterate('Урл на русском языке');
result = url-na-russkom-yazyke

a method .noConflict is available on transliterate object. This method, when invoken, restores the namespace transliterate to the previous value, if any.

1.0.1

6 years ago

1.0.0

6 years ago