Skip to content

把汉字转化为拼音字母,由chinalu/JSPinyin改写,使用新语法并去掉mootools的依赖

License

Notifications You must be signed in to change notification settings

arm-liang/pinyin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

汉字转拼音

把汉字转化为拼音字母,由chinalu/JSPinyin改写,使用新语法并去掉mootools的依赖

安装

npm install js-pinyin

import pinyin from 'js-pinyin'

使用示例

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

pinyin.setOptions({checkPolyphone: false, charCase: 0});

console.log(pinyin.getFullChars('管理员'));
console.log(pinyin.getCamelChars('管理员'));
console.log(pinyin.getCamelChars('1234'));
console.log(pinyin.getCamelChars('english'));

About

把汉字转化为拼音字母,由chinalu/JSPinyin改写,使用新语法并去掉mootools的依赖

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%