JSPM

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

汉字转换拼音,需要es6语法(let、class等)支持,不依赖其他组件

Package Exports

  • bb-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 (bb-pinyin) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

汉字转拼音

把汉字转化为拼音字母,由chinalu/JSPinyin改写,使用新语法并去掉mootools的依赖 项目需求要把拼音改成(中国->zhong;guo;zg),由waterchestnut/pinyin改写

安装

npm install bb-pinyin -S

import pinyin from 'bb-pinyin'

使用示例

let pinyin = require('bb-pinyin');

console.log(pinyin.getChars('管理员'));