pinyin-utils
v2.32.0
Published
Utilities to transform Pinyin syllables
Downloads
319
Maintainers
Readme
Pinyin Utils
Install
npm install pinyin-utils
Usage
import * as utils from 'pinyin-utils'
console.log(utils.getToneNumber('shì')) // 4
console.log(utils.getToneNumber('shi4')) // 4
console.log(utils.removeTone('wǒ')) // wo
console.log(utils.removeTone('wo3')) // wo
console.log(utils.markToNumber('lǜ')) // lü4
console.log(utils.numberToMark('lü4')) // lǜ
Related
pinyin-split
find-hanzi
hsk-words
cedict
mdbg
pinyin-or-hanzi
hanzi-to-pinyin
pinyin-convert
pinyin-rest
pinyin-api
pinyin-bot-core
pinyin-telegram
pinyin-messenger
pinyin-line
pinyin-chrome
pinyin-cli
hanzi-cli
Contributing
If you have a question, found a bug or want to propose a feature, have a look at the issues page.