dump-stream

A simple stream that dumps a stream to a string.

Usage no npm install needed!

<script type="module">
  import dumpStream from 'https://cdn.skypack.dev/dump-stream';
</script>

README

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());
});