Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
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 14,142 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.