accumulate

0.0.2 • Public • Published

Accumulate

npm install accumulate

Accumulates data, e.g. from a readable stream.

No more of this

var data = ''
stream.on('data', function(d) {
    data += d
})
stream.on('end', function() {
    /* something with `data` */
})

More of this

var accumulate = require('accumulate')('utf8')
stream.on('data', accumulate)
stream.on('end', accumulate.done(console.log))

Dependencies (0)

    Dev Dependencies (2)

    Package Sidebar

    Install

    npm i accumulate

    Weekly Downloads

    2

    Version

    0.0.2

    License

    none

    Last publish

    Collaborators

    • Weltschmerz