@robinpath/zip 0.1.0 → 0.1.2
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 +92 -92
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/zip.d.ts +1 -1
- package/dist/zip.d.ts.map +1 -1
- package/dist/zip.js +7 -6
- package/dist/zip.js.map +1 -1
- package/package.json +37 -7
package/README.md
CHANGED
|
@@ -1,92 +1,92 @@
|
|
|
1
|
-
# @robinpath/zip
|
|
2
|
-
|
|
3
|
-
> Compression utilities: gzip, deflate, Brotli for strings and files
|
|
4
|
-
|
|
5
|
-
   
|
|
6
|
-
|
|
7
|
-
## Why use this module?
|
|
8
|
-
|
|
9
|
-
The `zip` module lets you:
|
|
10
|
-
|
|
11
|
-
- Compress a string with gzip, return base64
|
|
12
|
-
- Decompress a gzip base64 string to text
|
|
13
|
-
- Compress a string with deflate, return base64
|
|
14
|
-
- Decompress deflate base64 data to text
|
|
15
|
-
- Compress a file with gzip
|
|
16
|
-
|
|
17
|
-
All functions are callable directly from RobinPath scripts with a simple, consistent API.
|
|
18
|
-
|
|
19
|
-
## Installation
|
|
20
|
-
|
|
21
|
-
```bash
|
|
22
|
-
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
## Quick Start
|
|
26
|
-
|
|
27
|
-
No credentials needed — start using it right away:
|
|
28
|
-
|
|
29
|
-
```robinpath
|
|
30
|
-
zip.gunzip $compressed
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
## Available Functions
|
|
34
|
-
|
|
35
|
-
| Function | Description |
|
|
36
|
-
|----------|-------------|
|
|
37
|
-
| `zip.gzip` | Compress a string with gzip, return base64 |
|
|
38
|
-
| `zip.gunzip` | Decompress a gzip base64 string to text |
|
|
39
|
-
| `zip.deflate` | Compress a string with deflate, return base64 |
|
|
40
|
-
| `zip.inflate` | Decompress deflate base64 data to text |
|
|
41
|
-
| `zip.gzipFile` | Compress a file with gzip |
|
|
42
|
-
| `zip.gunzipFile` | Decompress a .gz file |
|
|
43
|
-
| `zip.brotliCompress` | Compress a string with Brotli, return base64 |
|
|
44
|
-
| `zip.brotliDecompress` | Decompress Brotli base64 data to text |
|
|
45
|
-
| `zip.isGzipped` | Check if a base64 string is gzip-compressed |
|
|
46
|
-
|
|
47
|
-
## Examples
|
|
48
|
-
|
|
49
|
-
### Decompress a gzip base64 string to text
|
|
50
|
-
|
|
51
|
-
```robinpath
|
|
52
|
-
zip.gunzip $compressed
|
|
53
|
-
```
|
|
54
|
-
|
|
55
|
-
### Compress a string with deflate, return base64
|
|
56
|
-
|
|
57
|
-
```robinpath
|
|
58
|
-
zip.deflate "hello"
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
### Decompress deflate base64 data to text
|
|
62
|
-
|
|
63
|
-
```robinpath
|
|
64
|
-
zip.inflate $compressed
|
|
65
|
-
```
|
|
66
|
-
|
|
67
|
-
## Integration with RobinPath
|
|
68
|
-
|
|
69
|
-
```typescript
|
|
70
|
-
import { RobinPath } from "@wiredwp/robinpath";
|
|
71
|
-
import Module from "@robinpath/zip";
|
|
72
|
-
|
|
73
|
-
const rp = new RobinPath();
|
|
74
|
-
rp.registerModule(Module.name, Module.functions);
|
|
75
|
-
rp.registerModuleMeta(Module.name, Module.functionMetadata);
|
|
76
|
-
|
|
77
|
-
const result = await rp.executeScript(`
|
|
78
|
-
zip.gunzip $compressed
|
|
79
|
-
`);
|
|
80
|
-
```
|
|
81
|
-
|
|
82
|
-
## Full API Reference
|
|
83
|
-
|
|
84
|
-
See [MODULE.md](./MODULE.md) for complete documentation including all parameters, return types, error handling, and advanced examples.
|
|
85
|
-
|
|
86
|
-
## Related Modules
|
|
87
|
-
|
|
88
|
-
- [`@robinpath/json`](../json) — JSON module for complementary functionality
|
|
89
|
-
|
|
90
|
-
## License
|
|
91
|
-
|
|
92
|
-
MIT
|
|
1
|
+
# @robinpath/zip
|
|
2
|
+
|
|
3
|
+
> Compression utilities: gzip, deflate, Brotli for strings and files
|
|
4
|
+
|
|
5
|
+
   
|
|
6
|
+
|
|
7
|
+
## Why use this module?
|
|
8
|
+
|
|
9
|
+
The `zip` module lets you:
|
|
10
|
+
|
|
11
|
+
- Compress a string with gzip, return base64
|
|
12
|
+
- Decompress a gzip base64 string to text
|
|
13
|
+
- Compress a string with deflate, return base64
|
|
14
|
+
- Decompress deflate base64 data to text
|
|
15
|
+
- Compress a file with gzip
|
|
16
|
+
|
|
17
|
+
All functions are callable directly from RobinPath scripts with a simple, consistent API.
|
|
18
|
+
|
|
19
|
+
## Installation
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
robinpath add @robinpath/zip
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Quick Start
|
|
26
|
+
|
|
27
|
+
No credentials needed — start using it right away:
|
|
28
|
+
|
|
29
|
+
```robinpath
|
|
30
|
+
zip.gunzip $compressed
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## Available Functions
|
|
34
|
+
|
|
35
|
+
| Function | Description |
|
|
36
|
+
|----------|-------------|
|
|
37
|
+
| `zip.gzip` | Compress a string with gzip, return base64 |
|
|
38
|
+
| `zip.gunzip` | Decompress a gzip base64 string to text |
|
|
39
|
+
| `zip.deflate` | Compress a string with deflate, return base64 |
|
|
40
|
+
| `zip.inflate` | Decompress deflate base64 data to text |
|
|
41
|
+
| `zip.gzipFile` | Compress a file with gzip |
|
|
42
|
+
| `zip.gunzipFile` | Decompress a .gz file |
|
|
43
|
+
| `zip.brotliCompress` | Compress a string with Brotli, return base64 |
|
|
44
|
+
| `zip.brotliDecompress` | Decompress Brotli base64 data to text |
|
|
45
|
+
| `zip.isGzipped` | Check if a base64 string is gzip-compressed |
|
|
46
|
+
|
|
47
|
+
## Examples
|
|
48
|
+
|
|
49
|
+
### Decompress a gzip base64 string to text
|
|
50
|
+
|
|
51
|
+
```robinpath
|
|
52
|
+
zip.gunzip $compressed
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
### Compress a string with deflate, return base64
|
|
56
|
+
|
|
57
|
+
```robinpath
|
|
58
|
+
zip.deflate "hello"
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
### Decompress deflate base64 data to text
|
|
62
|
+
|
|
63
|
+
```robinpath
|
|
64
|
+
zip.inflate $compressed
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
## Integration with RobinPath
|
|
68
|
+
|
|
69
|
+
```typescript
|
|
70
|
+
import { RobinPath } from "@wiredwp/robinpath";
|
|
71
|
+
import Module from "@robinpath/zip";
|
|
72
|
+
|
|
73
|
+
const rp = new RobinPath();
|
|
74
|
+
rp.registerModule(Module.name, Module.functions);
|
|
75
|
+
rp.registerModuleMeta(Module.name, Module.functionMetadata);
|
|
76
|
+
|
|
77
|
+
const result = await rp.executeScript(`
|
|
78
|
+
zip.gunzip $compressed
|
|
79
|
+
`);
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
## Full API Reference
|
|
83
|
+
|
|
84
|
+
See [MODULE.md](./MODULE.md) for complete documentation including all parameters, return types, error handling, and advanced examples.
|
|
85
|
+
|
|
86
|
+
## Related Modules
|
|
87
|
+
|
|
88
|
+
- [`@robinpath/json`](../json) — JSON module for complementary functionality
|
|
89
|
+
|
|
90
|
+
## License
|
|
91
|
+
|
|
92
|
+
MIT
|
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAGrD,QAAA,MAAM,SAAS,EAAE,aAMhB,CAAC;AAEF,eAAe,SAAS,CAAC;AACzB,OAAO,EAAE,SAAS,EAAE,CAAC;AACrB,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC"}
|
package/dist/zip.d.ts
CHANGED
package/dist/zip.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zip.d.ts","sourceRoot":"","sources":["../src/zip.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAA2C,MAAM,
|
|
1
|
+
{"version":3,"file":"zip.d.ts","sourceRoot":"","sources":["../src/zip.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAA2C,MAAM,iBAAiB,CAAC;AAwE/F,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAEvD,CAAC;AAEF,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAU/B,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;CAG7B,CAAC"}
|
package/dist/zip.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { promisify } from "node:util";
|
|
2
|
+
import * as zlib from "node:zlib";
|
|
2
3
|
import { readFile, writeFile } from "node:fs/promises";
|
|
3
|
-
const gzipAsync = promisify(
|
|
4
|
-
const gunzipAsync = promisify(
|
|
5
|
-
const deflateAsync = promisify(
|
|
6
|
-
const inflateAsync = promisify(
|
|
7
|
-
const brotliCompressAsync = promisify(
|
|
8
|
-
const brotliDecompressAsync = promisify(
|
|
4
|
+
const gzipAsync = promisify(zlib.gzip);
|
|
5
|
+
const gunzipAsync = promisify(zlib.gunzip);
|
|
6
|
+
const deflateAsync = promisify(zlib.deflate);
|
|
7
|
+
const inflateAsync = promisify(zlib.inflate);
|
|
8
|
+
const brotliCompressAsync = promisify(zlib.brotliCompress);
|
|
9
|
+
const brotliDecompressAsync = promisify(zlib.brotliDecompress);
|
|
9
10
|
const gzip = async (args) => {
|
|
10
11
|
const buf = Buffer.from(String(args[0] ?? ""), "utf-8");
|
|
11
12
|
const compressed = await gzipAsync(buf);
|
package/dist/zip.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zip.js","sourceRoot":"","sources":["../src/zip.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"zip.js","sourceRoot":"","sources":["../src/zip.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAEvD,MAAM,SAAS,GAAG,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACvC,MAAM,WAAW,GAAG,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;AAC3C,MAAM,YAAY,GAAG,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;AAC7C,MAAM,YAAY,GAAG,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;AAC7C,MAAM,mBAAmB,GAAG,SAAS,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;AAC3D,MAAM,qBAAqB,GAAG,SAAS,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;AAE/D,MAAM,IAAI,GAAmB,KAAK,EAAE,IAAI,EAAE,EAAE;IAC1C,MAAM,GAAG,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,OAAO,CAAC,CAAC;IACxD,MAAM,UAAU,GAAG,MAAM,SAAS,CAAC,GAAG,CAAC,CAAC;IACxC,OAAO,UAAU,CAAC,QAAQ,CAAC,QAAQ,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AiB,EAAE,OAAO,EAAE,qBAAqB,EAAE;CAC3S,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,WAAW,EAAE,oEAAoE;IACjF,OAAO,EAAE,CAAC,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,EAAE,UAAU,EAAE,YAAY,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,WAAW,CAAC;CAC/H,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,13 +1,43 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@robinpath/zip",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"publishConfig": {
|
|
3
|
+
"version": "0.1.2",
|
|
4
|
+
"publishConfig": {
|
|
5
|
+
"access": "public"
|
|
6
|
+
},
|
|
5
7
|
"type": "module",
|
|
6
8
|
"main": "dist/index.js",
|
|
7
9
|
"types": "dist/index.d.ts",
|
|
8
|
-
"exports": {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"import": "./dist/index.js",
|
|
13
|
+
"types": "./dist/index.d.ts"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"files": [
|
|
17
|
+
"dist"
|
|
18
|
+
],
|
|
19
|
+
"scripts": {
|
|
20
|
+
"build": "tsc",
|
|
21
|
+
"test": "node --import tsx --test tests/*.test.ts"
|
|
22
|
+
},
|
|
23
|
+
"peerDependencies": {
|
|
24
|
+
"@robinpath/core": ">=0.20.0"
|
|
25
|
+
},
|
|
26
|
+
"devDependencies": {
|
|
27
|
+
"@robinpath/core": "^0.30.1",
|
|
28
|
+
"tsx": "^4.19.0",
|
|
29
|
+
"typescript": "^5.6.0"
|
|
30
|
+
},
|
|
31
|
+
"description": "Compression utilities: gzip, deflate, Brotli for strings and files",
|
|
32
|
+
"keywords": [
|
|
33
|
+
"zip",
|
|
34
|
+
"other"
|
|
35
|
+
],
|
|
36
|
+
"license": "MIT",
|
|
37
|
+
"robinpath": {
|
|
38
|
+
"category": "other",
|
|
39
|
+
"type": "utility",
|
|
40
|
+
"auth": "none",
|
|
41
|
+
"functionCount": 9
|
|
42
|
+
}
|
|
13
43
|
}
|