npm install zhuyin
import { fromPinyin } from 'zhuyin'
console.log(fromPinyin('wǒ de māo xǐhuan hē níunǎi'))
console.log(fromPinyin('wo3 de mao1 xi3huan he1niu2 nai3'))
console.log(fromPinyin('wǒdemāoxǐhuanhēníunǎi'))
console.log(fromPinyin('wo3demao1xi3huanhe1niu2nai3'))
// [ 'ㄨㄛˇ', 'ㄉㄜ˙', 'ㄇㄠ', 'ㄒㄧˇ', 'ㄏㄨㄢ˙', 'ㄏㄜ', 'ㄋㄧㄡˊ', 'ㄋㄞˇ' ]
pinyin-utils
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
If you have a question, found a bug or want to propose a feature, have a look at the issues page.