ee-stream-collector

collects all data from a readable stream and returns it as one buffer

ee-stream-collector

collects all data from a readable stream

npm install ee-stream-collector
var StreamCollector = require( "ee-stream-collector" );


var collector = new StreamCollector();

collector.on( "end", function( data ){
    console.log( data ); // Buffer .....
} );

stream.pipe( collector );