Skip to content

Commit

Permalink
[doc] Add a Literal example to add()
Browse files Browse the repository at this point in the history
  • Loading branch information
tommystanton committed Jan 16, 2014
1 parent 3a7b788 commit 79b9b84
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -121,6 +121,7 @@ The top-level of `nconf` is an instance of the `nconf.Provider` abstracts this a
Adds a new store with the specified `name` and `options`. If `options.type` is not set, then `name` will be used instead:

``` js
nconf.add('supplied', { type: 'literal', store: { 'some': 'config' });
nconf.add('user', { type: 'file', file: '/path/to/userconf.json' });
nconf.add('global', { type: 'file', file: '/path/to/globalconf.json' });
```
Expand Down

0 comments on commit 79b9b84

Please sign in to comment.