Package Exports
- mini-pinyin
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (mini-pinyin) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
mini-pinyin
Get tone(pinyin) of Chinese character.
Install
$ npm install mini-pinyin --save
Example
var pinyin = require('mini-pinyin');
console.log(pinyin('你')); // [ 'nǐ' ]
console.log(pinyin('好')); // [ 'hǎo', 'hào' ]
console.log(pinyin('你好')); // []
console.log(pinyin('!')); // []
License
MIT