nugget

minimalist wget clone written in node. HTTP GET files and downloads them into the current directory

  • 所有者: max-mapper/nugget
  • 平台:
  • 许可证: BSD 3-Clause "New" or "Revised" License
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

nugget

Minimalist command line downloader written in node, inspired by wget. HTTP GETs a file and streams it into a file in the current working directory. Specializes at downloading many files in parallel.

NPM
dat
Travis

installation

npm install nugget -g

usage

Usage: nugget <urls> [options]
  -o, --output     output filename
  -d, --dir        output parent directory
  -c, --continue   resume aborted download
  -f, --force      ignore response codes > 299
  -s, --sockets    concurrent socket limit (default infinity)
  -q, --quiet      disable logging
  --proxy          specify a proxy to use
  --no-strict-ssl  disable strict SSL cehcking

examples

nugget http://foo.com/bar.jpg
# downloads bar.jpg and stores it in the current directory

or

nugget http://foo.com/bar.jpg -O baz.jpg
# saves it as baz.jpg. you can also do lowercase -o

if you get a statusCode of 300 or greater nugget will stop. you can force it to stream the response into a file anyway by doing nugget http://404link.com/file.html -f or --force works too

you can also download multiple files, just pass multiple urls:

download multiple

options

The following options are recognized by nugget:

  • -o, -O, --out - specify the filename to write to. this only works if you are downloading a single file
  • -d, --dir - save files in a directory other than the current one.
  • -c, --continue - resume downloads if a partially complete target file already exists. If the target file exists and is the same size as the remote file, nothing will be done.
  • -f, --force - force the server response to be saved to the target file, even if it's a non-successful status code.
  • -s, --sockets - default Infinity. specify the number of http sockets to use at once (this controls concurrency)
  • -q, --quiet - disable logging
  • --proxy - specify a proxy to use
  • --no-strict-ssl - disable strict ssl

主要指标

概览
名称与所有者max-mapper/nugget
主编程语言JavaScript
编程语言JavaScript (语言数: 2)
平台
许可证BSD 3-Clause "New" or "Revised" License
所有者活动
创建于2014-10-18 11:50:03
推送于2023-07-19 21:46:13
最后一次提交2022-09-01 15:17:46
发布数17
最新版本名称v2.2.0 (发布于 2022-09-01 15:17:46)
第一版名称v1.3.0 (发布于 2014-10-21 15:48:01)
用户参与
星数176
关注者数9
派生数30
提交数77
已启用问题?
问题数17
打开的问题数13
拉请求数9
打开的拉请求数3
关闭的拉请求数5
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?