@dotenvx/dotenvx 0.3.0 → 0.3.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/README.md +20 -5
- package/package.json +1 -1
- package/src/cli/dotenvx.js +1 -1
package/README.md
CHANGED
|
@@ -86,13 +86,16 @@ More examples
|
|
|
86
86
|
* <details><summary>Docker 🐳</summary><br>
|
|
87
87
|
|
|
88
88
|
```sh
|
|
89
|
-
|
|
90
|
-
docker run -it --rm -v $(pwd):/app dotenv/dotenvx run -- node index.js
|
|
89
|
+
$ docker run -it --rm -v $(pwd):/app dotenv/dotenvx run -- node index.js
|
|
91
90
|
```
|
|
92
91
|
|
|
92
|
+
Or in any image:
|
|
93
|
+
|
|
93
94
|
```sh
|
|
94
|
-
|
|
95
|
-
|
|
95
|
+
FROM node:latest
|
|
96
|
+
RUN echo "HELLO=World" > .env && echo "console.log('Hello ' + process.env.HELLO)" > index.js
|
|
97
|
+
RUN curl -sfS https://dotenvx.sh/! | bash
|
|
98
|
+
CMD ["dotenvx", "run", "--", "echo", "Hello $HELLO"]
|
|
96
99
|
```
|
|
97
100
|
|
|
98
101
|
</details>
|
|
@@ -255,7 +258,19 @@ npm install @dotenvx/dotenvx --global
|
|
|
255
258
|
npx @dotenvx/dotenvx help
|
|
256
259
|
```
|
|
257
260
|
|
|
258
|
-
3.
|
|
261
|
+
3. Or install in your `package.json`
|
|
262
|
+
|
|
263
|
+
```sh
|
|
264
|
+
npm i @dotenvx/dotenvx --save
|
|
265
|
+
```
|
|
266
|
+
```json
|
|
267
|
+
// package.json
|
|
268
|
+
"scripts": {
|
|
269
|
+
"start": "./node_modules/.bin/dotenvx run -- nodex index.js"
|
|
270
|
+
}
|
|
271
|
+
```
|
|
272
|
+
|
|
273
|
+
3. Or download it directly as a standalone binary:
|
|
259
274
|
|
|
260
275
|
```sh
|
|
261
276
|
curl -sfS https://dotenvx.sh/! | sh
|
package/package.json
CHANGED
package/src/cli/dotenvx.js
CHANGED
|
@@ -49,7 +49,7 @@ program
|
|
|
49
49
|
.version(packageJson.version)
|
|
50
50
|
|
|
51
51
|
program.command('run')
|
|
52
|
-
.description('
|
|
52
|
+
.description('inject env variables into your application process')
|
|
53
53
|
.option('-f, --env-file <paths...>', 'path to your env file', '.env')
|
|
54
54
|
.option('-o, --overload', 'override existing env variables')
|
|
55
55
|
.action(function () {
|