pond

Collect a stream into a buffer.

pond

Collect a stream into a buffer.

Please aware that, because buffers came out from a stream are buffered into the memory, DO NOT try to collect a stream that is large or with unknowable length!

$ npm install pond
fs.createReadStream('somefile')
  .pipe(pond())
  .spoon(function (buffer) {
    // ... 
  })
pond(fs.createReadStream('anotherfile'), function (errbuffer) {
  // ... 
})
$ npm test

This project is released under the terms of MIT License.