npm install hanzi-to-zhuyin
const convert = require('hanzi-to-zhuyin')
convert('我的猫喜欢吃苹果')
.then(console.log)
// [ 'ㄨㄛˇ ', [ 'ㄉㄜ˙', 'ㄉㄧ', 'ㄉㄧˊ', 'ㄉㄧ`' ], ' ㄇㄠ ㄒㄧˇ ㄏㄨㄢ˙ ㄔ ㄆㄧㄥˊ ㄍㄨㄛˇ' ]
pinyin-utils
pinyin-split
zhuyin
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.