config-ninja
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -29,3 +29,3 @@ 'use strict'; | ||
return cfg; | ||
return cfg || null; | ||
@@ -105,3 +105,7 @@ }; | ||
// Attempt to load in the config file. | ||
addCfg = readConfigFile('additional', additionalMergeFile, dir, options.configInFilename, options.ignoreMissingAdditional); | ||
if (!addCfg) { continue; } | ||
// JSONify. | ||
addCfg = parseConfigJSON('additional', additionalMergeFile, addCfg); | ||
@@ -108,0 +112,0 @@ |
@@ -13,3 +13,3 @@ { | ||
"name": "config-ninja", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Environmental JSON config.", | ||
@@ -16,0 +16,0 @@ "keywords": [ |
@@ -20,5 +20,7 @@ # Config-Ninja | ||
console.dir(config); | ||
console.log('Super:', config.nested.number); // See examples. | ||
console.log('Nested Number:', config.nested.number); // See examples. | ||
``` | ||
See `example.js` for a working example. | ||
## Setup Config Files | ||
@@ -25,0 +27,0 @@ You will need at least 2 config files, one for `production` and one for `development`. You may also want config files for other environments such as `staging`. You can have as many files as you need. |
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
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
9050
135
80