# dlfile

> It can download any file with url. It can custom dir or filename.

Latest version **1.1.0** (published 2021-06-25) · ISC license · 0 weekly downloads

## Install

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

Provides the command `dlfile`.

## 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 | 2021-06-25 |
| First published | 2021-06-25 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 4.3 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | frontzhm |
| Maintainers | hua1 |

## Links

- npm: https://www.npmjs.com/package/dlfile
- Repository: https://github.com/frontzhm/dlfile
- Issues: https://github.com/frontzhm/dlfile/issues
- npm.io page: https://npm.io/package/dlfile

## Dependencies (2)

- [request](https://npm.io/package/request.md) ^2.88.2
- [minimist](https://npm.io/package/minimist.md) ^1.2.5

## Recent versions

- 1.1.0 (latest) — 2021-06-25
- 1.0.9 — 2021-06-25
- 1.0.8 — 2021-06-25
- 1.0.7 — 2021-06-25
- 1.0.6 — 2021-06-25
- 1.0.5 — 2021-06-25
- 1.0.4 — 2021-06-25
- 1.0.3 — 2021-06-25
- 1.0.2 — 2021-06-25
- 1.0.1 — 2021-06-25
- 1.0.0 — 2021-06-25

## README

# Dlfile can download any file with url

It can download any file with url.
It can custom dir or filename.

可以在任意路径下，运行命令下载任意一个资源，可以自定义资源放在哪个目录里，也可以自定义文件名。

## Installation

Install it as a command line tool via `npm -g`.

```sh
npm install dlfile -g
```

## Execution

```sh
// with url  eg: dlfile https://blog-huahua.oss-cn-beijing.aliyuncs.com/blog/code/thank_you.png
$ dlfile url

// or with dir eg:dlfile https://blog-huahua.oss-cn-beijing.aliyuncs.com/blog/code/thank_you.png ./img
$ dlfile url dir

// or with filename eg:dlfile https://blog-huahua.oss-cn-beijing.aliyuncs.com/blog/code/thank_you.png ./img demo.png
$ dlfile url dir filename
```

filename also can have no suffix.

## require

It also can support function to download file.

```sh
npm i dlfile
```

```js
const dlfile = require('dlfile')
dlfile(url[,dir,filename])

```

## License

The MIT license.

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