Created
May 23, 2014 03:06
-
-
Save ScottPesetsky/5ae7e72cb1968af4aa81 to your computer and use it in GitHub Desktop.
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 URL = process.argv[0] | |
//console.log(URL) | |
var http = require('http') | |
http.get("/usr/local/Cellar/node/0.10.26/bin/node"), function callback (response) { | |
response.on("error",function (error) {throw error}) | |
response.on("data", function (data) { | |
for (var i = data.length - 1; i >= 0; i--) { | |
console.log(data[i].setEncoding(utf8)); | |
}; | |
})}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment