Pinyin Convert
Checkout the pinyin-webinterface
which uses this module in the backend.
Install
npm install pinyin-convert
Usage
const convert = // Te wo3 de mao1 xi3 huan1 he1 niu2 nai3 // Te wǒ de māo xǐ huān hē niú nǎi // Test: wo3 de mao1 xi3huan1 he1 niu2nai3 // Test: wǒ de māo xǐhuān hē niúnǎi // [ 'wǒ ', [ 'de', 'dī', 'dí', 'dì' ], ' māo xǐ huan ', [ 'hē', 'hè' ], ' niú nǎi' ] // [ 'wǒ ', [ 'de', 'dī', 'dí', 'dì' ], ' māo xǐhuan ', [ 'hē', 'hè' ], ' niúnǎi' ] // [ 'wo3 ', ['de5', 'di1', 'di2', 'di4'], ' mao1 xǐ5huan1 ', ['he1', 'he4'], ' niu2nai3' ] // [ 'test: wǒ ', [ 'de', 'dī', 'dí', 'dì' ], ' māo xǐhuan ', [ 'hē', 'hè' ], ' niúnǎi' ]
Related
pinyin-utils
pinyin-split
find-hanzi
hsk-words
cedict
mdbg
pinyin-or-hanzi
hanzi-to-pinyin
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.