Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
pinyin-tone-convert
Advanced tools
Easily convert pinyin tone numbers to tone marks.
npm install pinyin-tone-convert
const toneConvert = require('pinyin-tone-convert')
toneConvert('Ni3 hao3 ma5?')
// 'Nǐ hǎo ma?'
toneConvert('Zhong1guo2ren2 ai4 he1 cha2 hai2shi5 ka1fei1?')
// Zhōngguórén ài hē chá háishi kāfēi?
Under the hood this library uses pinyin-tone-parse
library and thus passes options
object directly to it. Look for all available options here.
const toneConvert = require('pinyin-tone-convert')
toneConvert('pinyin...', options)
This library works based on these rules:
a
and e
trump all other vowels and always take the tone mark.ou
, o
takes the mark.npm test
MIT.
FAQs
Convert Pinyin tone numbers to tone marks.
We found that pinyin-tone-convert demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.