Skip to content

Commit c34709d

Browse files
committed
Optimize switch-chinese
1 parent be835d5 commit c34709d

File tree

5 files changed

+1257
-60
lines changed

5 files changed

+1257
-60
lines changed
Lines changed: 41 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,41 @@
11
{
22
"name": "switch-chinese",
3-
"version": "1.0.6",
4-
"description": "Convert between simplified and traditional Chinese characters. 切換正體/簡體中文,超輕量級,支援自訂詞彙與「一簡多繁」轉換,無任何相依性",
3+
"version": "1.0.7",
4+
"description": "Lightweight Chinese converter library for bidirectional conversion between Simplified and Traditional Chinese with intelligent word segmentation, custom dictionary support, character detection, and multiple output formats. Zero dependencies. 轻量级简繁体中文智能转换库,支持简繁双向转换、智能分词、自定义词库、文本检测及多种输出格式,零依赖",
55
"main": "stcasc.lib.js",
6+
"types": "stcasc.d.ts",
67
"type": "module",
8+
"exports": {
9+
".": {
10+
"import": "./stcasc.lib.js",
11+
"types": "./stcasc.d.ts"
12+
}
13+
},
14+
"files": [
15+
"stcasc.lib.js",
16+
"stcasc.d.ts",
17+
"readme.md"
18+
],
719
"repository": {
820
"type": "git",
921
"url": "git+https://github.com/hoothin/UserScripts.git#master"
1022
},
1123
"keywords": [
24+
"chinese",
25+
"converter",
26+
"traditional",
27+
"simplified",
28+
"chinese-converter",
29+
"simplified-chinese",
30+
"traditional-chinese",
31+
"chinese-translation",
32+
"chinese-detection",
33+
"character-detection",
34+
"text-converter",
35+
"language-converter",
36+
"i18n",
37+
"localization",
38+
"ruby-annotation",
1239
"简繁转换",
1340
"簡繁轉換",
1441
"简繁切换",
@@ -22,15 +49,22 @@
2249
"簡體中文",
2350
"繁體中文",
2451
"正體中文",
25-
"Switch",
26-
"Traditional",
27-
"Chinese",
28-
"Simplified"
52+
"中文转换",
53+
"中文检测",
54+
"一简多繁",
55+
"智能分词",
56+
"自定义词库",
57+
"零依赖",
58+
"轻量级"
2959
],
3060
"author": "Hoothin",
3161
"license": "MIT",
3262
"bugs": {
3363
"url": "https://github.com/hoothin/UserScripts/issues"
3464
},
35-
"homepage": "https://github.com/hoothin/UserScripts/tree/master/Switch%20Traditional%20Chinese%20and%20Simplified%20Chinese/lib"
65+
"homepage": "https://github.com/hoothin/UserScripts/tree/master/Switch%20Traditional%20Chinese%20and%20Simplified%20Chinese/lib",
66+
"engines": {
67+
"node": ">=12.0.0"
68+
}
3669
}
70+

0 commit comments

Comments
 (0)