Skip to content

cosmicexplorer/dump-stream

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Takes a stream and dumps it to some other data type..

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published