Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

config-ninja

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

config-ninja - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

6

configNinja.js

@@ -29,3 +29,3 @@ 'use strict';

return cfg;
return cfg || null;

@@ -105,3 +105,7 @@ };

// Attempt to load in the config file.
addCfg = readConfigFile('additional', additionalMergeFile, dir, options.configInFilename, options.ignoreMissingAdditional);
if (!addCfg) { continue; }
// JSONify.
addCfg = parseConfigJSON('additional', additionalMergeFile, addCfg);

@@ -108,0 +112,0 @@

2

package.json

@@ -13,3 +13,3 @@ {

"name": "config-ninja",
"version": "0.1.1",
"version": "0.1.2",
"description": "Environmental JSON config.",

@@ -16,0 +16,0 @@ "keywords": [

@@ -20,5 +20,7 @@ # Config-Ninja

console.dir(config);
console.log('Super:', config.nested.number); // See examples.
console.log('Nested Number:', config.nested.number); // See examples.
```
See `example.js` for a working example.
## Setup Config Files

@@ -25,0 +27,0 @@ You will need at least 2 config files, one for `production` and one for `development`. You may also want config files for other environments such as `staging`. You can have as many files as you need.

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