can't pipe to stdout
acis opened this issue · 3 comments
acis commented
process.stdin.pipe(concat(function(data) {})).pipe(process.stdout);
max-mapper commented
this is the correct behavior as concat-stream is a one way stream. this means you cant pipe concat-stream to other streams... think of it as the end of the line
instead try this:
process.stdin.pipe(concat(function(data) {
console.log(data)
})
isery commented
Is there a way to use through in combination with concat to do this?
max-mapper commented
sure, you just have to throughstream.queue
(write) the result of
concat-stream
On Mon, Aug 19, 2013 at 8:16 AM, isery notifications@github.com wrote:
Is there a way to use through in combination with concat to do this?
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/9#issuecomment-22879374
.