Created
June 10, 2015 19:36
-
-
Save mrlannigan/4fe572754027bcad3110 to your computer and use it in GitHub Desktop.
example passthrough stream for testing
This file contains hidden or 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 PassThrough = require('stream').PassThrough; | |
var stream = new PassThrough(); | |
stream.pipe(process.stdout); | |
stream.write('hello\nworld\n'); | |
stream.end(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment