您的位置:首页 > Web前端 > Node.js

Node.js第三方模块之download-cli

2015-10-02 10:49 513 查看
介绍:

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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: