sharenv 1.0.0 → 1.0.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 +7 -24
- package/bin/sharenv.js +1 -1
- package/package.json +1 -1
- package/sharenv-1.0.1.tgz +0 -0
- package/sharenv-1.0.0.tgz +0 -0
package/README.md
CHANGED
|
@@ -25,11 +25,11 @@ Encrypts a `.env` file and uploads it. Prints a **Share ID** for the recipient.
|
|
|
25
25
|
|
|
26
26
|
```bash
|
|
27
27
|
# Encrypt .env in the current folder
|
|
28
|
-
|
|
28
|
+
sharenv set
|
|
29
29
|
|
|
30
30
|
# Encrypt .env from a specific project
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
sharenv set C:/projects/myapp
|
|
32
|
+
sharenv set /home/user/backend
|
|
33
33
|
```
|
|
34
34
|
|
|
35
35
|
You'll be prompted for:
|
|
@@ -57,11 +57,11 @@ Fetches and decrypts a `.env`. Writes it to the specified folder (or current dir
|
|
|
57
57
|
|
|
58
58
|
```bash
|
|
59
59
|
# Write .env to current folder
|
|
60
|
-
|
|
60
|
+
sharenv get a1b2c3d4e5f6
|
|
61
61
|
|
|
62
62
|
# Write .env to a specific project folder
|
|
63
|
-
|
|
64
|
-
|
|
63
|
+
sharenv get a1b2c3d4e5f6 C:/projects/myapp
|
|
64
|
+
sharenv get a1b2c3d4e5f6 ./backend
|
|
65
65
|
```
|
|
66
66
|
|
|
67
67
|
You'll be prompted for the passkey. If wrong, decryption fails with an error — nothing is written.
|
|
@@ -78,24 +78,7 @@ envcrypt info a1b2c3d4e5f6
|
|
|
78
78
|
|
|
79
79
|
---
|
|
80
80
|
|
|
81
|
-
## Backend URL
|
|
82
81
|
|
|
83
|
-
By default the CLI uses `http://localhost:3001/api`.
|
|
84
|
-
|
|
85
|
-
To point it at your deployed backend:
|
|
86
|
-
|
|
87
|
-
```bash
|
|
88
|
-
# Windows PowerShell
|
|
89
|
-
$env:ENVCRYPT_API="https://your-backend.onrender.com/api"
|
|
90
|
-
envcrypt set
|
|
91
|
-
|
|
92
|
-
# Linux / macOS
|
|
93
|
-
ENVCRYPT_API=https://your-backend.onrender.com/api envcrypt set
|
|
94
|
-
```
|
|
95
|
-
|
|
96
|
-
Or set it permanently in your system environment variables.
|
|
97
|
-
|
|
98
|
-
---
|
|
99
82
|
|
|
100
83
|
## Security
|
|
101
84
|
|
|
@@ -104,7 +87,7 @@ Or set it permanently in your system environment variables.
|
|
|
104
87
|
| Encryption | AES-256-GCM |
|
|
105
88
|
| Key derivation | PBKDF2-SHA256, 310 000 iterations |
|
|
106
89
|
| Salt / IV | Random per upload (16 / 12 bytes) |
|
|
107
|
-
| Compatibility | Works with the
|
|
90
|
+
| Compatibility | Works with the envsecure.github.io web UI |
|
|
108
91
|
| Dependencies | **Zero** — uses Node.js built-ins only |
|
|
109
92
|
|
|
110
93
|
Blobs created in the browser can be retrieved from the CLI and vice versa.
|
package/bin/sharenv.js
CHANGED
|
@@ -16,7 +16,7 @@ import { join, resolve } from "path";
|
|
|
16
16
|
import { createInterface } from "readline";
|
|
17
17
|
|
|
18
18
|
// ─── CONFIG ────────────────────────────────────────────────────────────────────
|
|
19
|
-
const API_BASE = process.env.ENVCRYPT_API || "
|
|
19
|
+
const API_BASE = process.env.ENVCRYPT_API || "https://backendofenv.vercel.app/api";
|
|
20
20
|
|
|
21
21
|
// ─── ANSI COLOURS ─────────────────────────────────────────────────────────────
|
|
22
22
|
const bold = (s) => `\x1b[1m${s}\x1b[0m`;
|
package/package.json
CHANGED
|
Binary file
|
package/sharenv-1.0.0.tgz
DELETED
|
Binary file
|