1.1.7 • Published 8 months ago

getpinyin v1.1.7

Weekly downloads
3
License
ISC
Repository
github
Last release
8 months ago

根据汉字获取拼音

npm地址

https://www.npmjs.com/package/getpinyin

安装

npm install getpinyin --save

引用

import { getFirstPY, getFullPY } from 'getpinyin'
const { getFirstPY, getFullPY } = require('getpinyin')

使用

console.log(getFirstPY('国')) // g
console.log(getFirstPY('中国')) // zg
console.log(getFullPY('国')) // guo
console.log(getFullPY('中国')) // zhongguo

注意

没有对多音字进行处理

1.1.7

8 months ago

1.1.4

1 year ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago