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

envcfg

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

envcfg - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

.gitignore

17

lib/envcfg.js

@@ -24,3 +24,3 @@

config = typeof config === 'string' ? read(config) : config;
return new Config(config);
return Object.freeze(new Config(config));
};

@@ -50,2 +50,3 @@

function copy(obj) {
if (!obj) return;
var target = {};

@@ -69,3 +70,5 @@ Object.keys(obj).forEach(function(key) {

Object.keys(b).forEach(function(key) {
if (!a[key]) a[key] = b[key];
if (!a[key]) {
a[key] = b[key];
}
});

@@ -82,3 +85,3 @@ return a;

/**
* Constructor.
* Config constructor.
*

@@ -99,3 +102,5 @@ * @param {Object}

if (common) extend(settings, common);
if (common) {
extend(settings, common);
}

@@ -111,7 +116,5 @@ Object.defineProperty(this, 'env', extend({

}, descriptors));
}, this);
return Object.freeze(this);
}, this);
}

@@ -5,3 +5,3 @@ {

"description": "stupid simple environment aware configuration",
"version": "0.0.1",
"version": "0.0.2",
"repository": {

@@ -8,0 +8,0 @@ "type": "git",

@@ -9,2 +9,9 @@ [![Build Status](https://secure.travis-ci.org/gjohnson/envcfg.png?branch=master)](http://travis-ci.org/gjohnson/envcfg)

## Install
*****
```shell
npm install envcfg
```
## Usage

@@ -11,0 +18,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