configuration-master
Advanced tools
Comparing version 0.0.1 to 0.0.2
12
index.js
@@ -5,3 +5,3 @@ const _ = require('lodash'); | ||
const myConfig = {}; | ||
const COMMON_KEY = "Unique key not likely used by any other configurations"; | ||
const COMMON_KEY = "__COMMON"; | ||
const myMap = { | ||
@@ -42,5 +42,7 @@ "process.stdout": process.stdout, | ||
class config | ||
function config() | ||
{ | ||
loadConfig(filename, namespace) | ||
this.direct = myConfig; | ||
this.loadConfig = function(filename, namespace) | ||
{ | ||
@@ -51,3 +53,3 @@ let tmp = require(filename); | ||
setConfig(jsonObject, namespace) | ||
this.setConfig = function(jsonObject, namespace) | ||
{ | ||
@@ -58,3 +60,3 @@ jsonObject = _processConfig(jsonObject); | ||
getValue(key, namespace) | ||
this.getValue = function(key, namespace) | ||
{ | ||
@@ -61,0 +63,0 @@ |
{ | ||
"name": "configuration-master", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Simple configuration load/access tool.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
3509
6
79
1
55