From e0ef137c22c21a0a5fa98fee59849d155a11aa70 Mon Sep 17 00:00:00 2001 From: Richard Schneider Date: Fri, 14 Jul 2017 15:55:58 +1200 Subject: [PATCH] doc(autoconvert): example --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 7524f05..42f5ffc 100644 --- a/README.md +++ b/README.md @@ -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