dotenv-flow-cli
Advanced tools
Comparing version 1.0.0 to 1.1.0
@@ -5,2 +5,3 @@ #!/usr/bin/env node | ||
const dotenv = require('dotenv-flow'); | ||
const dotenvExpand = require('dotenv-expand'); | ||
@@ -23,3 +24,3 @@ function printHelp() { | ||
const path = argv.p; | ||
dotenv.config({ path }); | ||
dotenvExpand.expand(dotenv.config({ path })); | ||
@@ -26,0 +27,0 @@ const command = argv._[0]; |
{ | ||
"name": "dotenv-flow-cli", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "A cli executable to run commands with the ENV variables loaded by dotenv-flow", | ||
"license": "MIT", | ||
"repository": "github:ovos/dotenv-flow-cli", | ||
"main": "index.js", | ||
"bin": { | ||
@@ -13,5 +12,6 @@ "dotenv-flow": "./cli.js" | ||
"cross-spawn": "^7.0.3", | ||
"dotenv-expand": "*", | ||
"dotenv-flow": "*", | ||
"minimist": "^1.2.5" | ||
"minimist": "^1.2.6" | ||
} | ||
} |
@@ -47,1 +47,12 @@ # dotenv-flow-cli | ||
``` | ||
### Variable expansion | ||
To allow it to be a drop-in replacement for [dotenv-cli](https://github.com/motdotla/dotenv-cli) variable interpolation (expanding) is automatically enabled using [dotenv-expand](https://github.com/motdotla/dotenv-expand) under the hood. | ||
For example: | ||
``` | ||
IP=127.0.0.1 | ||
PORT=1234 | ||
APP_URL=http://${IP}:${PORT} | ||
``` | ||
Using the above example `.env` file, `process.env.APP_URL` will be resolved to `http://127.0.0.1:1234`. |
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
Wildcard dependency
QualityPackage has a dependency with a floating version range. This can cause issues if the dependency publishes a new major version.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
6679
13
33
58
4
2
1
+ Addeddotenv-expand@*
+ Addeddotenv-expand@12.0.1(transitive)
Updatedminimist@^1.2.6