1.2.1 • Published 3 years ago

calladownload v1.2.1

Weekly downloads
6
License
ISC
Repository
github
Last release
3 years ago

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.

1.2.0

3 years ago

1.2.1

3 years ago

1.1.0

4 years ago

1.0.0

4 years ago