implode-cli 0.0.0-stage → 0.4.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/README.md +25 -2
- package/bin/implode.js +24 -0
- package/implode.exe +0 -0
- package/package.json +17 -4
package/README.md
CHANGED
|
@@ -1,3 +1,26 @@
|
|
|
1
|
-
#
|
|
1
|
+
# implode-cli
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Standalone CLI for the Implode Engine. The npm package installs a global `implode`
|
|
4
|
+
command on Windows x64.
|
|
5
|
+
|
|
6
|
+
```bash
|
|
7
|
+
npm install -g implode-cli
|
|
8
|
+
implode --help
|
|
9
|
+
implode
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
Bare `implode` opens the interactive console. Quick terminal examples:
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
implode cmprs file.txt
|
|
16
|
+
implode cmprs folder/ other.bin -o bundle.vdx
|
|
17
|
+
implode dc bundle.vdx
|
|
18
|
+
implode open bundle.vdx
|
|
19
|
+
implode info bundle.vdx
|
|
20
|
+
implode verify bundle.vdx
|
|
21
|
+
implode run --benchmrk
|
|
22
|
+
implode run --benchmrk --full
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
The bundled binary is the same standalone `implode.exe` from the project release.
|
|
26
|
+
No Voidex installation is required.
|
package/bin/implode.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
const { spawn } = require("node:child_process");
|
|
5
|
+
const path = require("node:path");
|
|
6
|
+
|
|
7
|
+
const executable = path.join(__dirname, "..", "implode.exe");
|
|
8
|
+
const child = spawn(executable, process.argv.slice(2), {
|
|
9
|
+
stdio: "inherit",
|
|
10
|
+
windowsHide: false,
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
child.on("error", (error) => {
|
|
14
|
+
console.error(`implode: could not start ${executable}: ${error.message}`);
|
|
15
|
+
process.exit(1);
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
child.on("exit", (code, signal) => {
|
|
19
|
+
if (signal) {
|
|
20
|
+
process.kill(process.pid, signal);
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
23
|
+
process.exit(code ?? 1);
|
|
24
|
+
});
|
package/implode.exe
ADDED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "implode-cli",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.4.1",
|
|
4
|
+
"description": "Implode Engine standalone CLI: lossless .vdx compression, archive explorer, and benchmark",
|
|
5
|
+
"license": "MIT OR Apache-2.0",
|
|
6
|
+
"os": ["win32"],
|
|
7
|
+
"cpu": ["x64"],
|
|
8
|
+
"bin": {
|
|
9
|
+
"implode": "bin/implode.js"
|
|
10
|
+
},
|
|
11
|
+
"files": [
|
|
12
|
+
"bin/implode.js",
|
|
13
|
+
"implode.exe",
|
|
14
|
+
"README.md"
|
|
15
|
+
],
|
|
16
|
+
"engines": {
|
|
17
|
+
"node": ">=18"
|
|
18
|
+
}
|
|
19
|
+
}
|