Security News
JSR Working Group Kicks Off with Ambitious Roadmap and Plans for Open Governance
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
cyrillic-to-translit-js
Advanced tools
Simple javascript function for converting Cyrillic symbols to Translit
Ultra-lightweight JavaScript library for converting Cyrillic symbols to Translit and vice versa
npm install --save cyrillic-to-translit-js
import CyrillicToTranslit from 'cyrillic-to-translit-js';
const cyrillicToTranslit = new CyrillicToTranslit();
cyrillicToTranslit.transform('Какая-то строка', '_').toLowerCase();
{ preset: 'ru' }
or empty - transliteration preset for Russian language.{ preset: 'uk' }
- transliteration preset for Ukranian language (see PR #27).
{ preset: 'mn' }
- transliteration preset for Mongolian language (see PR #142).Convert Cyrillic symbols to Translit
cyrillicToTranslit().transform(input, spaceReplacement);
input
- string which should be transformedspaceReplacement
- symbol for space replacementConvert Translit symbols to Cyrillic
cyrillicToTranslit().reverse(input, spaceReplacement);
input
- string which should be transformedspaceReplacement
- symbol for space replacement cyrillicToTranslit().transform('Привет Мир!');
>Privet Mir!
cyrillicToTranslit().transform('привет мир!', "_")
>privet_mir!
cyrillicToTranslit({ preset: "uk" }).transform('привіт світе!', "_")
>pryvit_svite!
cyrillicToTranslit().reverse("ulitsa Soyuza Pechatnikov")
>улица Союза Печатников
cyrillicToTranslit({ preset: "uk" }).reverse("Rozghon Uliana i Harashchenko Khrystyna")
>Розгон Уляна і Гаращенко Христина
Typescript supports starting form v2.0.0. See definitions here
MIT © Aleksandr Filatov alfilatov.com
FAQs
Simple javascript function for converting Cyrillic symbols to Translit
The npm package cyrillic-to-translit-js receives a total of 8,327 weekly downloads. As such, cyrillic-to-translit-js popularity was classified as popular.
We found that cyrillic-to-translit-js demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
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.
Security News
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
Security News
Research
An advanced npm supply chain attack is leveraging Ethereum smart contracts for decentralized, persistent malware control, evading traditional defenses.
Security News
Research
Attackers are impersonating Sindre Sorhus on npm with a fake 'chalk-node' package containing a malicious backdoor to compromise developers' projects.