nodejs-config
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -128,9 +128,3 @@ /** | ||
else { | ||
// @todo: note | ||
if (helper.is_null(output['item'])) { | ||
this.__items[output['group']] = value; | ||
} | ||
else { | ||
helper.objectSet(this.__items[output['group']], output['item'], value); | ||
} | ||
helper.objectSet(this.__items[output['group']], output['item'], value); | ||
} | ||
@@ -137,0 +131,0 @@ }; |
{ | ||
"name": "nodejs-config", | ||
"version": "1.0.0", | ||
"description": "An advanced NodeJs configuration loader and manager which can load configuration values based on the development environement.", | ||
"version": "1.0.1", | ||
"description": "A Laravel inspired simple NodeJs configuration loader and manager which can load configuration values based on the development environment.", | ||
"main": "index.js", | ||
@@ -6,0 +6,0 @@ "scripts": { |
@@ -24,3 +24,3 @@ nodejs-config | ||
you may keep applications general settings in `config/app.json` and database settings in `config/database.json`. | ||
See example configuration files at [test folder](https://github.com/harishanchu/nodejs-config/tree/development/tests). | ||
See example configuration files at [test folder](https://github.com/harishanchu/nodejs-config/tree/master/tests). | ||
@@ -125,10 +125,10 @@ You can setup a new configuration manager instance with following syntax: | ||
```javascript | ||
if (config.environment('local')) | ||
{ | ||
// The environment is local | ||
} | ||
if (config.environment('local', 'staging')) | ||
{ | ||
// The environment is either local OR staging... | ||
} | ||
if (config.environment('local')) | ||
{ | ||
// The environment is local | ||
} | ||
if (config.environment('local', 'staging')) | ||
{ | ||
// The environment is either local OR staging... | ||
} | ||
``` |
20147
8
475