0.3.5 • Published 12 years ago

collect v0.3.5

Weekly downloads
17
License
-
Repository
github
Last release
12 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

12 years ago

0.3.4

12 years ago

0.3.3

12 years ago

0.3.2

12 years ago

0.3.1

12 years ago

0.3.0

12 years ago

0.2.0

13 years ago

0.1.0

13 years ago