# @mnesia/dl-file

> Promise based HTTP file downloader

Latest version **0.0.1** (published 2019-11-15) · 0 weekly downloads

## Install

```sh
npm install @mnesia/dl-file
pnpm add @mnesia/dl-file
yarn add @mnesia/dl-file
bun add @mnesia/dl-file
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2019-11-15 |
| First published | 2019-11-15 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 5.7 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | billybobni |

## Links

- npm: https://www.npmjs.com/package/@mnesia/dl-file
- Repository: https://github.com/projectmnesia/dl-file
- Homepage: https://github.com/projectmnesia/dl-file#readme
- Issues: https://github.com/projectmnesia/dl-file/issues
- npm.io page: https://npm.io/package/@mnesia/dl-file

## Dependencies (3)

- [request](https://npm.io/package/request.md) ^2.88.0
- [fs-extra](https://npm.io/package/fs-extra.md) ^8.1.0
- [lodash.throttle](https://npm.io/package/lodash.throttle.md) ^4.1.1

## Recent versions

- 0.0.1 (latest) — 2019-11-15

## README

# dl-file

Promise based HTTP file downloader

```js
fetch(url, filename)
  .then(filename => console.log(`Saved to ${filename}`));
```

With progress support
```js
function progressFunc(progress) {
  console.log(`Downloaded ${progress.downloadedBytes} of ${progress.totalSize}`);
}
const progressThrottle = 600;

fetch(url, filename, progressFunc, progressThrottle);
```

progressThrottle determines how often the progressFunc is called, default is 1000ms

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