JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 325
  • Score
    100M100P100Q35961F
  • License MIT

Collect a stream into a buffer.

Package Exports

  • pond

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (pond) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

pond

Build Status Coverage Status Dependency Status NPM version

NPM

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!

Installation

$ npm install pond

Usage

Piping:

fs.createReadStream('somefile')
  .pipe(pond())
  .spoon(function (buffer) {
    // ...
  })

Or:

pond(fs.createReadStream('anotherfile'), function (err, buffer) {
  // ...
})

Test

$ npm test

Roadmap

  • Promise support

License

This project is released under the terms of MIT License.