jimhigson / oboe.js

A streaming approach to JSON. Oboe.js speeds up web applications by providing parsed objects before the response completes.
http://jimhigson.github.io/oboe.js-website/index.html
Other
4.79k stars 208 forks source link

Implement WritableStream #180

Open nickshanks opened 5 years ago

nickshanks commented 5 years ago

I would like it if Oboe implemented WritableStream too.

Instead of oboe(readableStream.pipe(something).pipe(somethingElse)).on('done', (json) => …); We could have readableStream.pipe(something).pipe(somethingElse).pipe(oboe()).on('finish', (json) => …);

It would fit into the left-to-right reading of data pipelining, and use the standard Writable event names.