1.1.0 • Published 3 years ago

dlfile v1.1.0

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

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.

npm install dlfile -g

Execution

// 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.

npm i dlfile
const dlfile = require('dlfile')
dlfile(url[,dir,filename])

License

The MIT license.

1.0.2

3 years ago

1.1.0

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago