calladownload

1.2.1 • Public • Published

calladownload

GitHub code size in bytes GitHub package.json version GitHub

A native library to download a file from http or https

Installation

npm install --save calladownload

Example

With callbacks

calladownload(`http://example.com/index.html`, '/tmp/index.html', function (error) {
  console.log(error ? error : 'Downloaded successfully')
})

With promises

await calladownload(`http://example.com/index.html`, '/tmp/index.html')
console.log('Downloaded successfully');

License

This project is licensed under the terms of the MIT license.

Readme

Keywords

Package Sidebar

Install

npm i calladownload

Weekly Downloads

3

Version

1.2.1

License

ISC

Unpacked Size

9.13 kB

Total Files

7

Last publish

Collaborators

  • markwylde