1.0.8 • Published 2 years ago

fax-downloader v1.0.8

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

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

1.0.8

2 years ago

1.0.7

2 years ago

1.0.2

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago