Pinyin Rest
Install
npm install pepebecker/pinyin-rest
GET /pinyin/...
Examples
GET: https://pinyin-rest.pepebecker.com/pinyin/我的猫喜欢喝牛奶=> wǒ de māo xǐ huān hē niú nǎi
GET: https://pinyin-rest.pepebecker.com/pinyin/wo3 xi3huan1 he1 cha2=> wǒ xǐhuān hē chá
GET: https://pinyin-rest.pepebecker.com/pinyin/wǒ xǐhuān hēchá?keepSpaces=true'=> wo3 xi3huan1 he1 cha2
GET: https://pinyin-rest.pepebecker.com/pinyin/woxihuanhecha?split=true=> ["wo", "xi", "huan", "he", "cha"]
GET /hanzi/...
Examples
GET: https://pinyin-rest.pepebecker.com/hanzi/喜=> [ ]
Related
pinyin-utils
pinyin-split
find-hanzi
hsk-words
pinyin-or-hanzi
hanzi-to-pinyin
pinyin-convert
pinyin-api
pinyin-bot-core
pinyin-telegram
pinyin-messenger
Contributing
If you have a question, found a bug or want to propose a feature, have a look at the issues page.