forked from unicode-org/icu
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
169 lines (169 loc) · 4.97 KB
/
package.json
File metadata and controls
169 lines (169 loc) · 4.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
{
"name": "@discere-os/icu.wasm",
"version": "75.1.0",
"description": "Enhanced WebAssembly implementation of ICU with SIMD optimization and Deno-first wrapper",
"main": "install/wasm/icu-main.js",
"module": "install/wasm/icu-main.js",
"types": "src/lib/types.ts",
"type": "module",
"exports": {
".": {
"import": "./src/lib/index.ts",
"types": "./src/lib/types.ts"
},
"./types": {
"import": "./src/lib/types.ts"
},
"./simd": {
"import": "./src/lib/simd.ts",
"types": "./src/lib/types.ts"
},
"./side": {
"import": "./install/wasm/icu-side.wasm"
},
"./main": {
"import": "./install/wasm/icu-main.js"
},
"./package.json": "./package.json"
},
"files": [
"src/",
"install/",
"wasm/",
"LICENSE",
"README.md"
],
"scripts": {
"build": "./build-dual.sh all",
"build:side": "./build-dual.sh side",
"build:main": "./build-dual.sh main",
"build:npm": "deno run --allow-all _build_npm.ts",
"demo": "deno run --allow-read --allow-write demo-deno.ts",
"demo:simple": "deno run --allow-read --allow-write demo-deno-simple.ts",
"demo:simd": "deno run --allow-read --allow-write demo-deno-simd.ts",
"test": "deno test --allow-read tests/deno/",
"test:basic": "deno test --allow-read tests/deno/basic.test.ts",
"test:collation": "deno test --allow-read tests/deno/collation.test.ts",
"test:formatting": "deno test --allow-read tests/deno/formatting.test.ts",
"test:normalization": "deno test --allow-read tests/deno/normalization.test.ts",
"test:simd": "deno test --allow-read tests/deno/simd.test.ts",
"bench": "deno bench --allow-read bench/",
"bench:collation": "deno bench --allow-read bench/collation.bench.ts",
"bench:simd": "deno bench --allow-read bench/simd.bench.ts",
"clean": "rm -rf build-dual-* install/ npm/ dist/",
"check": "deno check src/lib/index.ts",
"fmt": "deno fmt src/ tests/ demo-deno*.ts bench/",
"lint": "deno lint src/ tests/ demo-deno*.ts bench/"
},
"keywords": [
"icu",
"unicode",
"internationalization",
"i18n",
"locale",
"webassembly",
"wasm",
"collation",
"formatting",
"normalization",
"unicode-processing"
],
"author": "Superstruct Ltd <hello@superstruct.co.nz>",
"license": "Unicode-3.0",
"repository": {
"type": "git",
"url": "https://github.com/discere-os/discere-nucleus.git",
"directory": "client/emscripten/icu.wasm",
"branch": "main"
},
"bugs": {
"url": "https://github.com/discere-os/discere-nucleus/issues"
},
"homepage": "https://github.com/discere-os/discere-nucleus/tree/main/client/emscripten/icu.wasm#readme",
"engines": {
"node": ">=18.0.0",
"deno": ">=1.40.0"
},
"devDependencies": {},
"peerDependencies": {},
"browser": {
"fs": false,
"path": false,
"os": false,
"crypto": false
},
"funding": {
"type": "github",
"url": "https://github.com/sponsors/superstruct"
},
"icu": {
"version": "75.1",
"modules": {
"core": {
"description": "Essential Unicode operations",
"size": "~8MB",
"features": ["normalization", "properties", "strings"]
},
"i18n": {
"description": "Internationalization services",
"size": "~12MB",
"features": ["collation", "formatting", "locales"]
},
"full": {
"description": "Complete ICU functionality",
"size": "~20MB",
"features": ["all"]
},
"threaded": {
"description": "Multi-threaded ICU with parallel processing",
"size": "~25MB",
"features": ["all", "threading", "parallel-ops", "bulk-processing"],
"requirements": ["SharedArrayBuffer", "COOP/COEP headers", "secure-context"]
}
},
"locales": {
"supported": 200,
"bundled": ["en", "en-US"],
"loadable": ["de", "fr", "es", "zh", "ja", "ar", "hi", "ru"]
},
"performance": {
"target_performance": "System-level performance",
"target": ">90% native performance",
"memory": {
"initial": "64MB",
"maximum": "512MB"
}
}
},
"wasm": {
"build": {
"classification": "Core internationalization services",
"emscripten": "4.0.13"
},
"features": {
"simd": "future enhancement",
"threading": "PRODUCTION-READY",
"filesystem": false,
"webgpu": "planned",
"parallel-processing": true,
"bulk-operations": true
},
"builds": {
"modular": true,
"targets": ["browser", "node", "worker"],
"optimization": ["O3", "closure", "lto"],
"threading": {
"enabled": true,
"worker-threads": 4,
"shared-memory": true,
"atomic-operations": true
}
},
"performance": {
"single-threaded": ">90% native performance",
"multi-threaded": ">95% native performance",
"parallel-speedup": "2-4x for bulk operations",
"memory-overhead": "<25% for threading support"
}
}
}