pinyin-pro
Advanced tools
Comparing version 3.2.0-alpha.1 to 3.2.0-alpha.2
{ | ||
"name": "pinyin-pro", | ||
"version": "3.2.0-alpha.1", | ||
"version": "3.2.0-alpha.2", | ||
"description": "汉字转拼音库。获取中文拼音、韵母、声母、声调、首字母等信息。", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
@@ -27,5 +27,5 @@ [![pinyin-pro Logo](https://i.ibb.co/26fJ5vF/pinyin-logo.png)](https://github.com/zh-lx/pinyin-pro) | ||
- 根据单字的使用频率调整字典顺序,性能大幅提升,长句的转换时间只需之前版本 50% 左右的时间 | ||
- 修复部分单字的常用读音 | ||
啊: ā -> a | ||
阿: ē -> ā | ||
- 修复部分单字的常用读音<br> | ||
- 啊: ā -> a | ||
- 阿: ē -> ā | ||
- 增加浏览器中 script 的引入方式 | ||
@@ -65,2 +65,3 @@ | ||
import { pinyin } from 'pinyin-pro'; | ||
pinyin('汉语拼音'); // 'hàn yǔ pīn yīn' | ||
``` | ||
@@ -72,2 +73,3 @@ | ||
const { pinyin } = require('pinyin-pro'); | ||
pinyin('汉语拼音'); // 'hàn yǔ pīn yīn' | ||
``` | ||
@@ -94,2 +96,4 @@ | ||
```js | ||
import { pinyin } from 'pinyin-pro'; | ||
// 获取带音调拼音 | ||
@@ -170,2 +174,4 @@ pinyin('汉语拼音'); // 'hàn yǔ pīn yīn' | ||
```javascript | ||
import { pinyin } from 'pinyin-pro'; | ||
// 获取多音 | ||
@@ -172,0 +178,0 @@ pinyin('好', { multiple: true }); // 'hǎo hào' |
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
1092637
185