Skip to content

Instantly share code, notes, and snippets.

@cjpartridgeb
Last active August 29, 2015 14:11
Show Gist options
  • Save cjpartridgeb/1819193c5d5e14577921 to your computer and use it in GitHub Desktop.
Save cjpartridgeb/1819193c5d5e14577921 to your computer and use it in GitHub Desktop.
require('http').request('http://www.google.com', function(res) {
res.pipe(require('through2')()).pipe(process.stdout);
}).end();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment