JSPM

mini-pinyin

0.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q45178F
  • License MIT

Get tone(pinyin) of Chinese character.

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