config 4.2.0 → 4.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/config.js +16 -0
- package/package.json +1 -1
package/lib/config.js
CHANGED
|
@@ -546,6 +546,22 @@ util.attachProtoDeep = function(toObject, depth) {
|
|
|
546
546
|
return toObject;
|
|
547
547
|
};
|
|
548
548
|
|
|
549
|
+
/**
|
|
550
|
+
* <p>Get a Config Environment Variable Value</p>
|
|
551
|
+
*
|
|
552
|
+
* <p>
|
|
553
|
+
* This method returns the value of the specified config environment variable,
|
|
554
|
+
* including any defaults or overrides.
|
|
555
|
+
* </p>
|
|
556
|
+
*
|
|
557
|
+
* @method getEnv
|
|
558
|
+
* @param varName {String} The environment variable name
|
|
559
|
+
* @return {String} The value of the environment variable
|
|
560
|
+
*/
|
|
561
|
+
util.getEnv = function (varName) {
|
|
562
|
+
return FIRST_LOAD.getEnv(varName);
|
|
563
|
+
}
|
|
564
|
+
|
|
549
565
|
/**
|
|
550
566
|
* Returns a new deep copy of the current config object, or any part of the config if provided.
|
|
551
567
|
*
|