Comparing version 0.1.6 to 0.1.9
{ | ||
"name": "js-pinyin", | ||
"version": "0.1.6", | ||
"version": "0.1.9", | ||
"description": "汉字转换拼音,需要es6语法(let、class等)支持,不依赖其他组件", | ||
@@ -5,0 +5,0 @@ "private": false, |
@@ -5,11 +5,18 @@ # 汉字转拼音 | ||
## 安装 | ||
>` npm install js-pinyin ` | ||
> | ||
>` import pinyin from 'js-pinyin' ` | ||
```base | ||
npm install js-pinyin | ||
import pinyin from 'js-pinyin' | ||
``` | ||
## 使用示例 | ||
>` let pinyin = require('js-pinyin'); ` | ||
>` console.log(pinyin.getFullChars('管理员')); ` | ||
>` console.log(pinyin.getCamelChars('管理员')); ` | ||
>` console.log(pinyin.getCamelChars('1234')); ` | ||
>` console.log(pinyin.getCamelChars('english')); ` | ||
```js | ||
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')); | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
90005
22