Skip to content

Commit

Permalink
fix(docs): Fix example in readme
Browse files Browse the repository at this point in the history
This refers to the old Mergeable behavior
  • Loading branch information
orangejulius committed May 23, 2018
1 parent 39eb404 commit 43c5de7
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,15 @@ The generated config will be a standard Javascript object:
var config = require('pelias-config'),
settings = config.generate();

// strip out all functions etc and produce a plain js object copy
var copy = settings.export();
console.log(JSON.stringify(settings, null, 2));
// {
// "api": {
// ...
// },
// "imports": {
// ...
// }
// }
```

You can pretty print the generated config with any package you like or with `JSON.stringify`.
Expand Down

0 comments on commit 43c5de7

Please sign in to comment.