Socket
Socket
Sign inDemoInstall

config-chain

Package Overview
Dependencies
Maintainers
2
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

config-chain - npm Package Compare versions

Comparing version 0.2.0 to 0.3.0

test/env.js

12

index.js

@@ -61,1 +61,13 @@

}
var env = exports.env = function (prefix, env) {
env = env || process.env
var obj = {}
var l = prefix.length
for(var k in env) {
if((i =k.indexOf(prefix)) === 0)
obj[k.substring(l)] = env[k]
}
return obj
}

7

package.json
{
"name": "config-chain",
"version": "0.2.0",
"version": "0.3.0",
"description": "HANDLE CONFIGURATION ONCE AND FOR ALL",

@@ -16,3 +16,6 @@ "homepage": "http://github.com/dominictarr/config-chain",

"REM": "REMEMBER TO REMOVE BUNDLING WHEN/IF ISAACS MERGES ini#7",
"author": "Dominic Tarr <dominic.tarr@gmail.com> (http://dominictarr.com)"
"author": "Dominic Tarr <dominic.tarr@gmail.com> (http://dominictarr.com)",
"scripts": {
"test": "node test/find-file.js && node test/ini.js && node test/env.js"
}
}

@@ -13,3 +13,2 @@

console.log(_json, _ini)
assert.deepEqual(json, ini)

@@ -16,0 +15,0 @@ }

Sorry, the diff of this file is not supported yet

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