Merge pull request #207 from moberemk/patch-1

Update README.md
This commit is contained in:
Jarrett Cruger 2016-01-27 12:32:26 -05:00
commit 3d4682a62f

View file

@ -149,6 +149,18 @@ Removes the store with the specified `name.` The configuration stored at that le
``` js ``` js
nconf.remove('file'); nconf.remove('file');
```y
### nconf.required(keys)
Declares a set of string keys to be mandatory, and throw an error if any are missing.
```js
nconf.defaults({
keya: 'a',
});
nconf.required(['keya', 'keyb']);
// Error: Missing required keys: keyb
``` ```
## Storage Engines ## Storage Engines