New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

nodejs-config

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nodejs-config - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

8

lib/config/Config.js

@@ -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 @@ };

4

package.json
{
"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...
}
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc