dot-env-json
Advanced tools
Comparing version 0.0.2 to 0.0.3
{ | ||
"name": "dot-env-json", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "package similar to dotenv that reads from JSON file.", | ||
@@ -5,0 +5,0 @@ "homepage": "", |
@@ -8,3 +8,3 @@ ## dotenv-json | ||
``` | ||
import dotenv from "dotenvJson"; | ||
import dotenv from "dot-env-json"; | ||
dotenv(); | ||
@@ -15,5 +15,5 @@ ``` | ||
``` | ||
node -r dotenvJson/config | ||
node -r dot-env-json/lib/config | ||
# change base directory from root | ||
node -r dotenvJson/config dotenv_config_base=config/ | ||
node -r dot-env-json/lib/config dotenv_config_base=config/ | ||
``` | ||
@@ -24,3 +24,3 @@ | ||
``` | ||
import dotenv from "dotenvJson"; | ||
import dotenv from "dot-env-json"; | ||
@@ -37,5 +37,5 @@ # approot/config/.env.development.json | ||
# gets the json file approot/env.test.json | ||
cross-env NODE_ENV=test node -r dotenvJson/config yourfile.js | ||
cross-env NODE_ENV=test node -r dot-env-json/lib/config yourfile.js | ||
# gets the json file approot/config/env.development.json | ||
cross-env NODE_ENV=development node -r dotenvJson/config dotenv_config_base=config/ yourfile.js | ||
cross-env NODE_ENV=development node -r dot-env-json/lib/config dotenv_config_base=config/ yourfile.js | ||
``` |
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
4496