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

nconf

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nconf - npm Package Compare versions

Comparing version 0.4.3 to 0.4.4

4

lib/nconf/stores/file.js

@@ -31,2 +31,6 @@ /*

this.format = options.format || formats.json;
if (options.search) {
this.search(this.dir);
}
};

@@ -33,0 +37,0 @@

2

package.json
{
"name": "nconf",
"description": "Hierarchical node.js configuration with files, environment variables, command-line arguments, and atomic object merging.",
"version": "0.4.3",
"version": "0.4.4",
"author": "Charlie Robbins <charlie.robbins@gmail.com>",

@@ -6,0 +6,0 @@ "repository": {

@@ -62,4 +62,4 @@ # nconf

``` js
nconf.add('global', { type: 'file', filename: '/path/to/globalconf.json' });
nconf.add('userconf', { type: 'file', filename: '/path/to/userconf.json' });
nconf.add('global', { type: 'file', file: '/path/to/globalconf.json' });
nconf.add('userconf', { type: 'file', file: '/path/to/userconf.json' });
```

@@ -74,3 +74,3 @@

//
nconf.use('file', { filename: '/path/to/some/config-file.json' });
nconf.use('file', { file: '/path/to/some/config-file.json' });

@@ -80,3 +80,3 @@ //

//
nconf.use('file', { filename: 'path/to/a-new/config-file.json' });
nconf.use('file', { file: 'path/to/a-new/config-file.json' });
```

@@ -192,2 +192,2 @@

[0]: http://github.com/indexzero/nconf
[0]: http://github.com/indexzero/nconf
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