1.0.8 • Published 5 months ago

fax-downloader v1.0.8

Weekly downloads
-
License
ISC
Repository
-
Last release
5 months 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

5 months ago

1.0.7

8 months ago

1.0.2

2 years ago

1.0.6

1 year ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago