New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

calladownload

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

calladownload

A library to download a file from http or https

1.2.1
latest
Source
npm
Version published
Weekly downloads
1
-50%
Maintainers
1
Weekly downloads
 
Created
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

download

FAQs

Package last updated on 21 Jun 2021

Did you know?

Socket

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