1.1.7 • Published 2 years ago

getpinyin v1.1.7

Weekly downloads
3
License
ISC
Repository
github
Last release
2 years 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

2 years ago

1.1.4

2 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago