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

来源:互联网 发布:音频提取软件手机软件 编辑:程序博客网 时间:2024/06/10 06:09

介绍:

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
0 0
原创粉丝点击