Skip to content

Instantly share code, notes, and snippets.

@joshuakfarrar
Last active August 29, 2015 13:57
Show Gist options
  • Save joshuakfarrar/9671801 to your computer and use it in GitHub Desktop.
Save joshuakfarrar/9671801 to your computer and use it in GitHub Desktop.
"use strict";
var http = require('http')
, bl = require('bl');
http.get(process.argv[2], function(res) {
res.pipe(bl(function (err, data) {
if (err) return console.error(data);
console.log(data.length);
console.log(data.toString());
}));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment