Node JS Library to Convert Chinese to Pinyin
npm install chinese_pinyin
var pinyin = require('chinese_pinyin');
console.log(pinyin("你好,我是 @aaa"));
Output:
"ni hao ,wo shi @aaa"
npm test
You may also like this tool.
- Fork it!
- Create your feature branch: git checkout -b my-new-feature
- Commit your changes: git commit -am 'Add some feature'
- Push to the branch: git push origin my-new-feature
- Submit a pull request :D