Comparing version 0.5.2 to 0.5.3
{ | ||
"name": "nenv", | ||
"description": "Node development environment manager", | ||
"version": "0.5.2", | ||
"version": "0.5.3", | ||
"author": "muji <noop@xpm.io>", | ||
@@ -6,0 +6,0 @@ "main": "lib/index.js", |
@@ -55,3 +55,4 @@ Table of Contents | ||
// do something when the specified environment is invalid | ||
}else if(env.test) { | ||
// and the debug flag is not set | ||
}else if(env.test && !env.debug) { | ||
// do something for test environment | ||
@@ -70,3 +71,8 @@ } | ||
* `set`: A custom function for setting the environment value (optional). | ||
* `dbg`: A string for the debug flag environment variable, default is `DEBUG`. | ||
The returned query object maintains a special `debug` property which is a boolean indicating whether the `DEBUG` environment variable has been set, if this conflicts with an environment name either change the `environments` or `dbg` options. | ||
The query object is maintained in a `cache` and will be returned on subsequenct calls which is typically desirable, if you need a fresh query `delete nenv.cache`. | ||
### env([value]) | ||
@@ -194,2 +200,3 @@ | ||
"PRODUCTION": "production", | ||
"debug": false, | ||
"value": "devel", | ||
@@ -196,0 +203,0 @@ "current": "devel", |
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
14708
275