env-creator 1.1.0 → 1.1.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 +5 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -64,7 +64,7 @@ pnpx env-creator create
|
|
|
64
64
|
```bash
|
|
65
65
|
pnpx env-creator create PORT=3000 NODE_ENV=development
|
|
66
66
|
# or short version
|
|
67
|
-
|
|
67
|
+
pnpm exec env c PORT=3000 NODE_ENV=development
|
|
68
68
|
```
|
|
69
69
|
|
|
70
70
|
**Resulting `.env`:**
|
|
@@ -184,10 +184,10 @@ pnpx env-creator generate-constants [file] [--out <filename>]
|
|
|
184
184
|
|
|
185
185
|
**Examples:**
|
|
186
186
|
```bash
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
187
|
+
pnpm exec env gc # Generates envConstants.js from .env by default
|
|
188
|
+
pnpm exec env gc .env.production # Generates envConstants.js from .env.production
|
|
189
|
+
pnpm exec env gc --out myConfig.js # Generates myConfig.js from .env
|
|
190
|
+
pnpm exec env gc .env.production --out config/env.js # Generates config/env.js from .env.production
|
|
191
191
|
```
|
|
192
192
|
|
|
193
193
|
**Resulting `envConstants.js`:**
|