diff options
author | LinuxWizard42 <computerwizard@linuxmail.org> | 2022-10-12 22:54:37 +0300 |
---|---|---|
committer | LinuxWizard42 <computerwizard@linuxmail.org> | 2022-10-12 22:54:37 +0300 |
commit | 703e03aba33f234712206769f57717ba7d92d23d (patch) | |
tree | 0041f04ccb75bd5379c764e9fe42249fffe75fc3 /node_modules/nugget/readme.md | |
parent | ab6e257e6e9d9a483d7e86f220d8b209a2cd7753 (diff) | |
download | FlashRunner-703e03aba33f234712206769f57717ba7d92d23d.tar.gz FlashRunner-703e03aba33f234712206769f57717ba7d92d23d.tar.zst |
Added export_allowed file to make repository visible in cgit
Diffstat (limited to 'node_modules/nugget/readme.md')
-rw-r--r-- | node_modules/nugget/readme.md | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/node_modules/nugget/readme.md b/node_modules/nugget/readme.md new file mode 100644 index 0000000..439975b --- /dev/null +++ b/node_modules/nugget/readme.md @@ -0,0 +1,58 @@ +# 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. + +[](https://nodei.co/npm/nugget/) + +[](https://travis-ci.org/maxogden/nugget) + +## installation + +``` +npm install nugget -g +``` + +## usage + +``` +Usage: nugget <urls> [options] + -o output filename + -d output parent directory + -c resume aborted download + -f ignore response codes > 299 + -s concurrent socket limit (default infinity) + -q disable logging +``` + +### 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: + + + +## options + +The following options are recognized by nugget: + + * `-s|--sockets` - default Infinity. specify the number of http sockets to use at once (this controls concurrency) + * `-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. + * `-q|--quiet` - disable logging + * `--no-strict-ssl` - disable strict ssl + * `--proxy` - specify a proxy to use |