New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

env-conf-loader

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

env-conf-loader - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

README.zh-CN.md

2

package.json
{
"name": "env-conf-loader",
"version": "0.0.1",
"version": "0.0.2",
"description": "auto load config file/directory with env",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -12,2 +12,4 @@ # evn-conf-loader

load configs from file/directory with current, merge object by object's key and environment variable.
## Install

@@ -39,7 +41,7 @@

var conf = loader('./foo.json')
// if NODE_ENV is nothing
// NODE_ENV is undefined
console.log(conf.bar) // 1
// if NODE_ENV is production
// NODE_ENV is production
console.log(conf.bar) // 2
// if NODE_ENV is development
// NODE_ENV is development
console.log(conf.bar) // 3

@@ -46,0 +48,0 @@ ```

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