pinyin-rest
Rest API to convert Chinese characters to Pinyin and convert between Pinyin with tone marks and Pinyin with tone numbers.
Last updated 3 years ago by pepebecker .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install pinyin-rest 
SYNC missed versions from official npm registry.

Pinyin Rest

dependency status dev dependency status MIT-licensed chat on gitter

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/喜
=> [
    {
     "hanzi": "喜",
     "pinyin": ["xǐ", "xī", "chì"],
     "cangjie": "GRTR",
     "cangjie2": "土口廿口",
     "strokes": "12",
     "frequency": "2",
     "definition": "like, love, enjoy; joyful thing"
    }
   ]

Related

Contributing

If you have a question, found a bug or want to propose a feature, have a look at the issues page.

Current Tags

  • 1.0.2                                ...           latest (3 years ago)

2 Versions

  • 1.0.2                                ...           3 years ago
  • 1.0.1                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (7)
Dev Dependencies (1)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |