Skip to content

Latest commit

 

History

History
33 lines (27 loc) · 597 Bytes

README.md

File metadata and controls

33 lines (27 loc) · 597 Bytes

chinese_pinyin

Node JS Library to Convert Chinese to Pinyin

Installation

npm install chinese_pinyin

Usage

var pinyin = require('chinese_pinyin');
console.log(pinyin("你好,我是 @aaa"));

Output:

"ni hao ,wo shi @aaa"

Tests

npm test

Online Tool

You may also like this tool.

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D