defuss-brotli 0.1.1
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/LICENSE +21 -0
- package/README.md +328 -0
- package/dist/compressor.d.ts +106 -0
- package/dist/compressor.js +190 -0
- package/dist/decompressor.d.ts +94 -0
- package/dist/decompressor.js +183 -0
- package/package.json +76 -0
package/package.json
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "defuss-brotli",
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"description": "A pure-Rust Brotli WebAssembly package with split compressor/decompressor exports for small build sizes.",
|
|
7
|
+
"author": "Aron Homberg <info@aron-homberg.de>",
|
|
8
|
+
"packageManager": "bun@1.3.9",
|
|
9
|
+
"publishConfig": {
|
|
10
|
+
"access": "public"
|
|
11
|
+
},
|
|
12
|
+
"repository": {
|
|
13
|
+
"type": "git",
|
|
14
|
+
"url": "git+https://github.com/kyr0/defuss.git"
|
|
15
|
+
},
|
|
16
|
+
"keywords": [
|
|
17
|
+
"brotli",
|
|
18
|
+
"compression",
|
|
19
|
+
"decompression",
|
|
20
|
+
"rust",
|
|
21
|
+
"wasm",
|
|
22
|
+
"webassembly",
|
|
23
|
+
"isomorphic",
|
|
24
|
+
"npm",
|
|
25
|
+
"defuss"
|
|
26
|
+
],
|
|
27
|
+
"sideEffects": false,
|
|
28
|
+
"files": [
|
|
29
|
+
"dist",
|
|
30
|
+
"wasm/pkg",
|
|
31
|
+
"README.md",
|
|
32
|
+
"LICENSE",
|
|
33
|
+
"THIRD_PARTY_NOTICES.md"
|
|
34
|
+
],
|
|
35
|
+
"exports": {
|
|
36
|
+
"./compressor": {
|
|
37
|
+
"import": {
|
|
38
|
+
"types": "./dist/compressor.d.ts",
|
|
39
|
+
"default": "./dist/compressor.js"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"./decompressor": {
|
|
43
|
+
"import": {
|
|
44
|
+
"types": "./dist/decompressor.d.ts",
|
|
45
|
+
"default": "./dist/decompressor.js"
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"scripts": {
|
|
50
|
+
"setup": "bun scripts/setup.ts",
|
|
51
|
+
"clean": "bun scripts/clean.ts",
|
|
52
|
+
"build": "bun scripts/build.ts",
|
|
53
|
+
"pretest": "bun run build",
|
|
54
|
+
"test": "vitest run --coverage",
|
|
55
|
+
"pretest:browser": "bun run build",
|
|
56
|
+
"test:browser": "vitest run --config vitest.browser.config.ts",
|
|
57
|
+
"example": "bun run build && bun examples/quality-comparison.ts",
|
|
58
|
+
"test:e2e": "bun run build && bun e2e/e2e.ts",
|
|
59
|
+
"bench": "bun run build && vitest bench --run --config vitest.bench.config.ts",
|
|
60
|
+
"bench:browser": "bun run build && vitest bench --run --config vitest.bench.browser.config.ts",
|
|
61
|
+
"prepublishOnly": "bun run build"
|
|
62
|
+
},
|
|
63
|
+
"engines": {
|
|
64
|
+
"node": "^20.0.0 || >=22.0.0"
|
|
65
|
+
},
|
|
66
|
+
"devDependencies": {
|
|
67
|
+
"@types/node": "^25.4.0",
|
|
68
|
+
"@vitest/browser": "^4.0.18",
|
|
69
|
+
"@vitest/browser-playwright": "^4.0.18",
|
|
70
|
+
"@vitest/coverage-v8": "^4.0.18",
|
|
71
|
+
"playwright": "^1.58.2",
|
|
72
|
+
"typescript": "^5.9.3",
|
|
73
|
+
"vite-plugin-wasm": "^3.5.0",
|
|
74
|
+
"vitest": "^4.0.18"
|
|
75
|
+
}
|
|
76
|
+
}
|