0.3.5 • Published 11 years ago

collect v0.3.5

Weekly downloads
17
License
-
Repository
github
Last release
11 years ago

collect

Collect waits for a bunch of streams to end and then calls back. Easy.

install

npm install collect

usage

var fs = require('fs');
var Collection = require('collect');

var potatoStream = fs.createWriteStream('potato.txt');
var carrotStream = fs.createWriteStream('carrot.txt');
var bananaStream = fs.createWriteStream('banana.txt');

var collection = Collection([potatoStream, carrotStream]);
collection.push(bananaStream);

collection.collect(function() {
  // All streams have finished writing! yay!
});
0.3.5

11 years ago

0.3.4

11 years ago

0.3.3

11 years ago

0.3.2

11 years ago

0.3.1

11 years ago

0.3.0

11 years ago

0.2.0

11 years ago

0.1.0

11 years ago