-
-
Save terinjokes/25d5dbe6f657fba197e97dcac2032ee3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var through = require('through2'); | |
var multi = require('multi-read-stream'); | |
var pumpify = require('pumpify'); | |
var pump = require('pump'); | |
function doer() { | |
var rs = multi.obj(); | |
creator.on('stream', function(s) { | |
rs.add(pumpify.obj(s, aTransformStream)) | |
}); | |
rs.add(pumpify.obj(someReadableStream, aTransformStream)) | |
return rs | |
} | |
pump([doer(), anotherTransform, sinkStream], function(err) { | |
if (err) { | |
console.log("An error happened :( : ", err); | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment