fax-downloader

1.0.8 • Public • Published

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

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i fax-downloader

    Weekly Downloads

    8

    Version

    1.0.8

    License

    ISC

    Unpacked Size

    3.66 kB

    Total Files

    5

    Last publish

    Collaborators

    • faxes