collect-stream

Collect a readable stream's output and errors

npm install collect-stream
2 downloads in the last day
6 downloads in the last week
11 downloads in the last month

collect-stream

Collect a readable stream's output and errors.

Usage

var collect = require('collect-stream');

collect(stringStream, function(err, data) {
  console.log(data); // one string
});

collect(bufferStream, function(err, data) {
  console.log(data); // one buffer
});

collect(objectStream, function(err, data) {
  console.log(data); // an array of objects
});

Installation

$ npm install collect-stream

License

MIT

npm loves you