@dotenvx/dotenvx 0.3.0 → 0.3.2

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 CHANGED
@@ -86,13 +86,16 @@ More examples
86
86
  * <details><summary>Docker 🐳</summary><br>
87
87
 
88
88
  ```sh
89
- # run as a command-line tool
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
- # include in a Dockerfile
95
- # example coming soon
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. dotenvx is a standalone binary, so (if you want) you can just download it directly:
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
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.3.0",
2
+ "version": "0.3.2",
3
3
  "name": "@dotenvx/dotenvx",
4
4
  "description": "a better dotenv–from the creator of `dotenv`",
5
5
  "author": "@motdotla",
@@ -49,7 +49,7 @@ program
49
49
  .version(packageJson.version)
50
50
 
51
51
  program.command('run')
52
- .description('Inject env variables into your application process')
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 () {