ecrypto-cli 1.0.2 → 1.0.4

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/bin/ecrypto CHANGED
Binary file
@@ -0,0 +1 @@
1
+ ECRYPTO installing...
@@ -0,0 +1,12 @@
1
+ #!/usr/bin/env node
2
+
3
+ const { spawn } = require("child_process");
4
+ const path = require("path");
5
+ const os = require("os");
6
+
7
+ const platform = os.platform();
8
+ const binary = platform === "win32" ? "ecrypto.exe" : "ecrypto";
9
+
10
+ const binPath = path.join(__dirname, binary);
11
+
12
+ spawn(binPath, process.argv.slice(2), { stdio: "inherit" });
package/package.json CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "name": "ecrypto-cli",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "Military-grade folder encryption tool (npm global installer)",
5
5
  "bin": {
6
- "ecrypto": "bin/ecrypto.js"
6
+ "ecrypto": "bin/ecrypto",
7
+ "ecrypto-cli": "bin/ecrypto"
7
8
  },
8
9
  "scripts": {
9
10
  "postinstall": "node postinstall.js"
@@ -16,7 +17,7 @@
16
17
  "homepage": "https://github.com/pandarudra/ecrypto",
17
18
  "repository": {
18
19
  "type": "git",
19
- "url": "https://github.com/pandarudra/ecrypto.git"
20
+ "url": "git+https://github.com/pandarudra/ecrypto.git"
20
21
  },
21
22
  "keywords": [
22
23
  "encryption",
package/postinstall.js CHANGED
@@ -61,7 +61,7 @@ const downloadUrl = `https://github.com/pandarudra/ecrypto/releases/download/${v
61
61
 
62
62
  console.log(`⬇️ Downloading ECRYPTO binary: ${downloadUrl}`);
63
63
 
64
- // FIX: bin folder should be inside npm/ folder, not root/
64
+ // bin folder should be inside npm/ folder
65
65
  const binDir = path.join(__dirname, "bin");
66
66
  const outputPath = path.join(binDir, "ecrypto");
67
67