Created
February 10, 2017 22:51
-
-
Save heimdallrj/cd956f49a996a60626252f39cec34213 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 fileUrl = "http://twitter.github.com/bootstrap/assets/bootstrap.zip"; | |
var output = "bootstrap.zip"; | |
request({url: fileUrl, encoding: null}, function(err, resp, body) { | |
if(err) throw err; | |
fs.writeFile(output, body, function(err) { | |
console.log("file written!"); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment