Comparing version 0.4.3 to 0.4.4
@@ -31,2 +31,6 @@ /* | ||
this.format = options.format || formats.json; | ||
if (options.search) { | ||
this.search(this.dir); | ||
} | ||
}; | ||
@@ -33,0 +37,0 @@ |
{ | ||
"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 |
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
237212
1868
190