@dotenvx/dotenvx
Advanced tools
Comparing version 0.3.0 to 0.3.2
{ | ||
"version": "0.3.0", | ||
"version": "0.3.2", | ||
"name": "@dotenvx/dotenvx", | ||
@@ -4,0 +4,0 @@ "description": "a better dotenv–from the creator of `dotenv`", |
@@ -89,9 +89,12 @@ ![dotenvx](https://dotenvx.github.io/better-banner.png) | ||
```sh | ||
# run as a command-line tool | ||
docker run -it --rm -v $(pwd):/app dotenv/dotenvx run -- node index.js | ||
$ docker run -it --rm -v $(pwd):/app dotenv/dotenvx run -- node index.js | ||
``` | ||
Or in any image: | ||
```sh | ||
# include in a Dockerfile | ||
# example coming soon | ||
FROM node:latest | ||
RUN echo "HELLO=World" > .env && echo "console.log('Hello ' + process.env.HELLO)" > index.js | ||
RUN curl -sfS https://dotenvx.sh/! | bash | ||
CMD ["dotenvx", "run", "--", "echo", "Hello $HELLO"] | ||
``` | ||
@@ -259,5 +262,17 @@ | ||
3. dotenvx is a standalone binary, so (if you want) you can just download it directly: | ||
3. Or install in your `package.json` | ||
```sh | ||
npm i @dotenvx/dotenvx --save | ||
``` | ||
```json | ||
// package.json | ||
"scripts": { | ||
"start": "./node_modules/.bin/dotenvx run -- nodex index.js" | ||
} | ||
``` | ||
3. Or download it directly as a standalone binary: | ||
```sh | ||
curl -sfS https://dotenvx.sh/! | sh | ||
@@ -264,0 +279,0 @@ ``` |
@@ -52,3 +52,3 @@ #!/usr/bin/env node | ||
program.command('run') | ||
.description('Inject env variables into your application process') | ||
.description('inject env variables into your application process') | ||
.option('-f, --env-file <paths...>', 'path to your env file', '.env') | ||
@@ -55,0 +55,0 @@ .option('-o, --overload', 'override existing env variables') |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11658
305