parse-pinyin 1.2.4 → 1.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -84,11 +84,6 @@ console.log(toHanzi('xíng'));
|
|
|
84
84
|
|
|
85
85
|
```javascript
|
|
86
86
|
import { toPinyin, toHanzi } from 'parse-pinyin';
|
|
87
|
-
|
|
88
|
-
// 基本使用
|
|
89
|
-
console.log(toPinyin('你好世界'));
|
|
90
|
-
// 输出: ["nǐ", "hǎo", "shì", "jiè"]
|
|
91
|
-
|
|
92
87
|
// 多音字处理
|
|
93
88
|
console.log(toPinyin('中'));
|
|
94
89
|
// 输出: ["zhōng", "zhòng"]
|
|
@@ -151,6 +146,12 @@ console.timeEnd('pinyin-pro');
|
|
|
151
146
|
| 单字符拼音转换 (10,000次) | 13.27ms | 166.45ms | 12.54x |
|
|
152
147
|
| 批量处理 (100,000字符) | ~130ms | ~1660ms | 12.77x |
|
|
153
148
|
|
|
149
|
+
### 文件大小
|
|
150
|
+
|
|
151
|
+
| parse-pinyin | pinyin-pro |
|
|
152
|
+
|-------------|------------|
|
|
153
|
+
| 229 kB | 323 kB |
|
|
154
|
+
|
|
154
155
|
|
|
155
156
|
## 浏览器使用
|
|
156
157
|
|