Download a file to disk programmatically.
npm install download-to-file --save
var download =console
download(url, filepath, callback)
Will download the content of the given
url and store it in a file
filepath. When done, the
callback will be called with
an optional error object as the first argument and the
filepath as the
If the server does not return a 200 HTTP status code, the callback will be called with an error and the file will not be stored on disk.