# @taluoo/download

> download url and save to a tmpfile

Latest version **1.1.0** (published 2018-09-04) · ISC license · 0 weekly downloads

## Install

```sh
npm install @taluoo/download
pnpm add @taluoo/download
yarn add @taluoo/download
bun add @taluoo/download
```

## 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.1.0 |
| Published | 2018-09-04 |
| First published | 2017-10-10 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 6.3 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | taluoo |

## Links

- npm: https://www.npmjs.com/package/@taluoo/download
- Repository: https://github.com/taluoo/download
- Homepage: https://github.com/taluoo/download#readme
- Issues: https://github.com/taluoo/download/issues
- npm.io page: https://npm.io/package/@taluoo/download

## Dependencies (2)

- [request](https://npm.io/package/request.md) ^2.83.0
- [@taluoo/tmpfile](https://npm.io/package/@taluoo/tmpfile.md) ^1.0.1

## Recent versions

- 1.1.0 (latest) — 2018-09-04
- 1.0.3 — 2017-10-12
- 1.0.2 — 2017-10-11
- 1.0.1 — 2017-10-11
- 1.0.0 — 2017-10-10

## README

download url and save to a tmpfile

## THIS PROJECT IS 【INACTIVE】
This project is not maintained anymore. Please use alternative.

## Install

```
npm install @taluoo/download --save
```

## Usage

```
const download = require('@taluoo/download');

async function test() {
    let tmpFilePath = await download('https://www.baidu.com/'); // download(url) return a Promise, which will resolve a tmpfile path when response.statusCode == 200 and download success
    console.log(tmpFilePath);
}

test();
```

## TODO

- custom requst headers

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