Package Exports
- pull-array-collate
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 (pull-array-collate) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
pull-array-collate
Collate arrays and send them downstream.
This pull-stream is combination of a Sink and a Through. It will sink all the objects from upstream, once upstream
reached it's end, it'll send downstream an array.
Example
var pull = require("pull-stream");
var arrCollateStream = require("pull-array-collate");
function plusOneMapper(num) {
return num+1;
}
pull(
pull.values([1,2,3,4]),
pull.map(plusOneMapper),
arrCollateStream(),
pull.drain(console.log)
)Result:
[ 2, 3, 4, 5 ]install
With npm do:
npm install pull-array-collatelicense
MIT