Skip to content
/ pinyin Public

汉字转拼音,浏览器端实现,兼容 Chrome、Firefox、Safari 等浏览器,支持 20892 个基本汉字

License

Notifications You must be signed in to change notification settings

huntbao/pinyin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

安装

npm install 'easy-pinyin' --save

使用

import pinyin from 'easy-pinyin';

const str = '拼音';
console.log(pinyin(str)); // pin'yin

注意

只支持浏览器环境

About

汉字转拼音,浏览器端实现,兼容 Chrome、Firefox、Safari 等浏览器,支持 20892 个基本汉字

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published