hanzi-to-pinyin
v1.86.0
Published
Convert Hanzi to Pinyin with tone marks or tone numbers
Maintainers
Readme
Hanzi to Pinyin
Install
npm install hanzi-to-pinyinUsage
const convert = require('hanzi-to-pinyin')
convert('我的猫喜欢吃苹果')
.then(console.log)
// [ ['wǒ'], ['de','dī','dí','dì'], ['māo'], ['xǐ huan'], ['chī'], ['píng guǒ'] ]Related
pinyin-utilspinyin-splitfind-hanzihsk-wordscedictmdbgpinyin-or-hanzipinyin-convertpinyin-restpinyin-apipinyin-bot-corepinyin-telegrampinyin-messengerpinyin-linepinyin-chromepinyin-clihanzi-cli
Contributing
If you have a question, found a bug or want to propose a feature, have a look at the issues page.
