1.0.8 • Published 11 months ago

translit-rus-eng v1.0.8

Weekly downloads
43
License
ISC
Repository
github
Last release
11 months ago

TranslitRusEng

Transliteration script for rus-eng and eng-rus transitions.

Based on ISO 9/ГОСТ 7.79 standard (with a few improvements).

  • No dependencies, only 4Kb
  • Transliterate from Russian to English and vice versa

Usage:

import translitRusEng from 'translit-rus-eng';

translitRusEng (string, options)

string: string/array/object values to transliterate (Russian or English)

options: object, can include booleans 'engToRus', 'slug' (to make url-friendly slug-like strings) or 'lowerCase' (to force transliteration into lowercase)


Examples:

translitRusEng ("Kol'skij poluostrov", { engToRus: true }):

"Кольский полуостров"

translitRusEng ("Широкая электрификация южных губерний", { slug: true }):

"shirokaya_elektrifikacziya_yuzhnyh_gubernij"

translitRusEng ("Скушай ещё этих мягких булочек", { lowerCase: true }):

"skushaj eshhyo e`tih myagkih bulochek"
1.0.8

11 months ago

1.0.7

3 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago