config-handler
Advanced tools
Comparing version 2.0.0 to 2.0.1
{ | ||
"name": "config-handler", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"engines": { | ||
@@ -5,0 +5,0 @@ "node": ">=6.0.0" |
@@ -92,9 +92,15 @@ # Config Handler | ||
`dir` - {string} - Name of the config dir, defaults to `config`. | ||
`log` - {boolean} - Whether or not to output logging, defaults to `false`. | ||
`cwd` - {string} - Current working directory location, defaults to `process.cwd()` | ||
`env` - {string} - environment name for local config file, defaults to `NODE_ENV` or `development`. | ||
`global` - {string} - name of the global config file to load, defaults to `all`. | ||
`logger` - {function | object} - logger to use, defaults to `console`. | ||
The options are passed in as an object to the config: | ||
```js | ||
const config = require('config')({ /* options */ }); | ||
``` | ||
* `dir` - {string} - Name of the config dir, defaults to `config`. | ||
* `log` - {boolean} - Whether or not to output logging, defaults to `false`. | ||
* `cwd` - {string} - Current working directory location, defaults to `process.cwd()` | ||
* `env` - {string} - environment name for local config file, defaults to `NODE_ENV` or `development`. | ||
* `global` - {string} - name of the global config file to load, defaults to `all`. | ||
* `logger` - {function | object} - logger to use, defaults to `console`. | ||
## Tests | ||
@@ -101,0 +107,0 @@ |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
15893
116
0