Package Exports
- nugget
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (nugget) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
nugget
minimalist wget clone written in node. HTTP GETs a file and streams it into a file in the current working directory
installation
npm install nugget -gusage
nugget http://foo.com/bar.jpg
# downloads bar.jpg and stores it in the current directoryor
nugget http://foo.com/bar.jpg -O baz.jpg
# saves it as baz.jpg. you can also do lowercase -oif 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
options
The following options are recognized by nugget:
-o|-O|--out- specify the filename to write to.-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.
