fax-downloader
v1.0.8
Published
Download files from URLs with fax-downloader. This works for image downloads and any file that is hosted on a CDN.
Downloads
53
Readme
File Downloader
Download files from URLs and save to a defined location. Downloading file just got that little easier.
Params
- url (required) - The file/image URL
- dest (required) - The destination from the node process location to save the file too.
Options (Object)
Other options can include those within HTTP.request - https://nodejs.org/api/http.html#httprequestoptions-callback
Example Usage
let options = {
url: `http://your.domain`,
dest: `/save/location`,
}
faxDl.getFile(options.url, options.dest, /*{other: options}*/).then(function(fileResult) {
/*
fileResult = {
dest: `/save/location`,
status: 200,
error: `error`,
}
*/
});
License
Under the MIT license