Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cyrillic-to-translit-js

Package Overview
Dependencies
Maintainers
3
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cyrillic-to-translit-js

Simple javascript function for converting Cyrillic symbols to Translit

  • 2.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
10K
decreased by-5.02%
Maintainers
3
Weekly downloads
 
Created
Source

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

Demo page

Install

npm install --save cyrillic-to-translit-js

Simple to use

Constructor

  • { preset: ru } or empty - transliteration preset for Russian language.
  • { preset: uk } - transliteration preset for Ukranian language (see PR #27).

transform()

cyrillicToTranslit().transform(str, spaceReplacement);

  • str - string which should be transformed
  • spaceReplacement - symbol for space replacement

Examples

  cyrillicToTranslit().transform('привет мир!');

  >privet mir!
  cyrillicToTranslit().transform('привет мир!', "_")

  >privet_mir!
  cyrillicToTranslit({ preset: "uk" }).transform('привіт світе!', "_")

  >pryvit_svite!

Typescript

Typescript supports starting form v2.0.0. See definitions here

Credits

License

MIT © Aleksandr Filatov alfilatov.com

Keywords

FAQs

Package last updated on 06 Nov 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc