stream-aggregate-promise

0.1.2 • Public • Published

stream-aggregate-promise

Aggregates a Node.js stream and calls a callback with the accumulated result of first encountered error.

var aggregate = require('stream-aggregate-promise')

aggregate(stream)
  .then(function(result) { ... })
  .fail(function(err) { ... })

Binary streams (which emit buffer objects) are aggregated into a single buffer, object streams -- into an array of emitted objects and streams of strings -- into a single concatenated string.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.2
    91
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.2
    91
  • 0.1.1
    0
  • 0.1.0
    1

Package Sidebar

Install

npm i stream-aggregate-promise

Weekly Downloads

92

Version

0.1.2

License

MIT

Last publish

Collaborators

  • andreypopp