A writable stream that acts a collector for previous operations results and provides an "close" event to act on them after finshed
Readable .from([1, 2, 3, 4]) .pipe(new Collect()) .on("close", (chunks: string[]) => { console.log(chunks); // [1,2,3,4] });
the type of record passed down by previous streams
Event emitter The defined events on documents including:
Generated using TypeDoc
A writable stream that acts a collector for previous operations results and provides an "close" event to act on them after finshed
Readable .from([1, 2, 3, 4]) .pipe(new Collect()) .on("close", (chunks: string[]) => { console.log(chunks); // [1,2,3,4] });