Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dot-env-json

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dot-env-json - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

2

package.json
{
"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
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc