Skip to content

Commit

Permalink
doc(autoconvert): example
Browse files Browse the repository at this point in the history
  • Loading branch information
richardschneider committed Jul 14, 2017
1 parent 72f4166 commit e0ef137
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Expand Up @@ -216,6 +216,15 @@ name of the deal format.
.on('data', data => {
console.log(JSON.stringify(data));
});
The deal formats and PBN can also be automatically detected, using `pbn.autoConvert()`

fs.createReadStream('foo.bri')
.pipe(pbn.autoConvert(options))
.on('data', data => {
console.log(JSON.stringify(data));
});


### BRI

Expand Down

0 comments on commit e0ef137

Please sign in to comment.