npm.io
0.0.9 • Published 10 years ago

dump-stream

Licence
GPL-3.0
Version
0.0.9
Deps
0
Vulns
0
Weekly
0
Stars
1

dump-stream

Takes a stream and dumps it to a string, or an array if you really need that, I guess.

USAGE

DumpStream = require('dump-stream');
// use new DumpStream({outputType: 'Array'}) to dump to array
var stream = new DumpStream();
getReadableStreamSomehow().pipe(stream).on('finish', function(){
  console.log(stream.dump());
});

Keywords