reduce-stream-to-promise
v1.0.5
Published
Reduce a stream to a promise by the given reduction function
Downloads
8
Maintainers
Readme
Reduce a stream to a promise
Usage
let reduceStream = require('reduce-stream-to-promise')
function concat(acc, curr) {
return acc + curr;
}
reduceStream(concat, '', stream).then(result => console.log(result))