Skip to content

Instantly share code, notes, and snippets.

@mrlannigan
Created June 10, 2015 19:36
Show Gist options
  • Save mrlannigan/4fe572754027bcad3110 to your computer and use it in GitHub Desktop.
Save mrlannigan/4fe572754027bcad3110 to your computer and use it in GitHub Desktop.
example passthrough stream for testing
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