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.
Files changed (2) hide show
  1. package/README.md +6 -5
  2. 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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "parse-pinyin",
3
- "version": "1.2.4",
3
+ "version": "1.2.6",
4
4
  "description": "一个高效的汉字拼音查询库,兼容浏览器和nodejs,提供ESM、commonjs、iife格式的构建,支持拼音反查",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",