config-chain
Advanced tools
Comparing version 0.2.0 to 0.3.0
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 | ||
} |
{ | ||
"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
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
16632
15
244
66
0
4