Socket
Socket
Sign inDemoInstall

calladownload

Package Overview
Dependencies
3
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    calladownload

A library to download a file from http or https


Version published
Weekly downloads
4
decreased by-20%
Maintainers
1
Install size
98.5 kB
Created
Weekly downloads
 

Readme

Source

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.

Keywords

FAQs

Last updated on 21 Jun 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc