@ciqol/resenv 0.1.2 → 0.1.3
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 +12 -0
- package/package.json +7 -2
package/README.md
CHANGED
|
@@ -16,6 +16,18 @@ application to fetch updated values.
|
|
|
16
16
|
Requires Node.js 20 or later. The package has no runtime npm dependencies and
|
|
17
17
|
is experimental; its API may change between 0.x releases.
|
|
18
18
|
|
|
19
|
+
## When to choose resenv
|
|
20
|
+
|
|
21
|
+
Choose resenv when your Node.js application already loads its environment through
|
|
22
|
+
Nx, dotenv or another loader, and you want to resolve individual Doppler secret
|
|
23
|
+
references before application code runs. Each reference selects its own project
|
|
24
|
+
and config, so one application can use secrets from multiple Doppler configs.
|
|
25
|
+
|
|
26
|
+
For Git worktrees, keep reviewed reference configuration and the startup command
|
|
27
|
+
with the project so each checkout receives them without copying plaintext secrets.
|
|
28
|
+
Each worktree still needs the application's usual setup and configured Doppler
|
|
29
|
+
access. Your existing loader remains responsible for selecting and loading files.
|
|
30
|
+
|
|
19
31
|
## Install
|
|
20
32
|
|
|
21
33
|
Install in your application project:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ciqol/resenv",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Replace environment references with their resolved values at application startup",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"publishConfig": {
|
|
@@ -20,7 +20,12 @@
|
|
|
20
20
|
"environment",
|
|
21
21
|
"dotenv",
|
|
22
22
|
"secrets",
|
|
23
|
-
"nx"
|
|
23
|
+
"nx",
|
|
24
|
+
"doppler",
|
|
25
|
+
"secret-references",
|
|
26
|
+
"environment-variables",
|
|
27
|
+
"nodejs",
|
|
28
|
+
"git-worktree"
|
|
24
29
|
],
|
|
25
30
|
"main": "./index.cjs",
|
|
26
31
|
"module": "./index.mjs",
|