calladownload
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.