# calladownload

> A library to download a file from http or https

Latest version **1.2.1** (published 2021-06-21) · ISC license · 0 weekly downloads

## Install

```sh
npm install calladownload
pnpm add calladownload
yarn add calladownload
bun add calladownload
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.1 |
| Published | 2021-06-21 |
| First published | 2020-05-23 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 8.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | markwylde |
| Keywords | download |

## Links

- npm: https://www.npmjs.com/package/calladownload
- Repository: https://github.com/markwylde/calladownload
- Homepage: https://github.com/markwylde/calladownload#readme
- Issues: https://github.com/markwylde/calladownload/issues
- npm.io page: https://npm.io/package/calladownload

## Dependencies (1)

- [righto](https://npm.io/package/righto.md) ^6.1.3

## Recent versions

- 1.2.1 (latest) — 2021-06-21
- 1.2.0 — 2021-06-21
- 1.1.0 — 2020-05-23
- 1.0.0 — 2020-05-23

## README

# calladownload
![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/markwylde/calladownload)
[![GitHub package.json version](https://img.shields.io/github/package-json/v/markwylde/calladownload)](https://github.com/markwylde/calladownload/releases)
[![GitHub](https://img.shields.io/github/license/markwylde/calladownload)](https://github.com/markwylde/calladownload/blob/master/LICENSE)

A native library to download a file from http or https

## Installation
```bash
npm install --save calladownload
```

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

### With promises
```javascript
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.

---
_Source: https://npm.io/package/calladownload · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
