p-stream
Readable stream to Promise
Create Promises that resolve when a readable
stream is finished streaming data. Or rejected when the stream reports an error.
Promise must be polyfilled.
Examples
var fs = ;var pstream = ;{return fs;};
p-stream can handle strings and buffers.
TIP: Make sure to set the encoding on the stream to properly handle utf8 strings. Please refer to setEncoding for more details.