/cyrillic-to-translit-js

Simple javascript function for converting Cyrillic symbols to Translit

Primary LanguageJavaScript

cyrillic-to-translit-js

Greenkeeper badge

NPM version Build Status Coveralls Status Dependency Status DevDependency Status

Simple javascript function for converting Cyrillic symbols to Translit

Simple to use

cyrillicToTranslit().transform(str, spaceReplacement);

  • str - string which should be transformed
  • spaceReplacement - symbol for space replacement
    cyrillicToTranslit().transform('привет мир!');
    
    >privet mir!
    cyrillicToTranslit().transform('привет мир!', "_")
    
    >privet_mir!