介绍:
download-cli是一个download模块的命令行版本。
安装:
$sudo npm install -g download-cli
用法:
$ download --help
输出:
charies:two xxxxxx$ download --help
Download and extract files
Usage
$ download <url>
$ download <url> > <file>
$ download --out <directory> <url>
$ cat <file> | download --out <directory>
Example
$ download http://foo.com/file.zip
$ download http://foo.com/cat.png > dog.png
$ download --extract --strip 1 --out dest http://foo.com/file.zip
$ cat urls.txt | download --out dest
Options
-e, --extract Try decompressing the file
-o, --out Where to place the downloaded files
-s, --strip <number> Strip leading paths from file names on extraction
本文介绍了download-cli,一个用于命令行环境下载并提取文件的模块。提供了详细的安装和使用方法,包括基本命令及参数说明,并通过实例展示了如何高效下载与管理文件。
926

被折叠的 条评论
为什么被折叠?



