-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some data not coming out through stdout when used as the last stream. #18
Comments
Problem still exists with node v5.2.0 |
What you are doing is quite weird because It makes more sense if the combined streams are all through streams. |
I was using console.log just for debug purposes. Run the following code: var combine = require('stream-combiner');
var through = require('through2');
middle = through(function(buffer, encoding, next) {
this.push(buffer)
next();
})
combine(process.stdin,
middle,
process.stdout); Running this in the terminal and entering text into stdin will get you this:
If piping in stdin and out to stdout should not be used, then stdin and stdout examples should be removed from readme.md, only recommending through2 streams. |
Wow, that readme is really really old. I havn't written |
Some data is lost during piping for this script:
Output
Seems like every other input from stdin is dropped.
When I do this:
Output:
Everything works correctly.
Running on Mac OS X with node v0.12.7 and:
├─┬ stream-combiner@0.2.2
│ ├── duplexer@0.1.1
│ └── through@2.3.8
├─┬ through2@2.0.0
│ └─┬ readable-stream@2.0.5
│ ├── core-util-is@1.0.2
│ ├── isarray@0.0.1
│ ├── process-nextick-args@1.0.6
│ ├── string_decoder@0.10.31
│ └── util-deprecate@1.0.2
The text was updated successfully, but these errors were encountered: