flatiron/nconf — Issue #23: nconf.defaults: "Object has no method 'defaults" (Example from readme.)
Author: secoif
Created: 2011-12-01 18:14:06+00:00
State: open

This example from the readme, doesn't seem to work, gives the following errors:

`TypeError: Property 'overrides' of object [object Object] is not a function`
`TypeError: Property 'env' of object [object Object] is not a function`
`TypeError: Object [object Object] has no method 'file'`
`TypeError: Object [object Object] has no method 'defaults'`

Am I missing something?

```javascript
var nconf=require('nconf');

//
// 1. any overrides
//
nconf.overrides({
'always':'be this value'
});

//
// 2. `process.env`
// 3. `process.argv`
//
nconf.env().argv();

//
// 4. Values in `config.json`
//
nconf.file({file:'config.json'});

//
// 5. Any default values
//
nconf.defaults({
'if nothing else':'use this value'
});
```