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
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 pondUsage
Piping:
fs.createReadStream('somefile')
.pipe(pond())
.spoon(function (buffer) {
// ...
})Or:
pond(fs.createReadStream('anotherfile'), function (err, buffer) {
// ...
})Test
$ npm testLicense
This project is released under the terms of MIT License.
[issues-img]: https://img.shields.io/github/issues/xingrz/pond.svg?style=flat-square [issues-url]: https://github.com/xingrz/pond/issues