wget-improved
Advanced tools
Comparing version 1.3.0 to 1.4.0
{ | ||
"name": "wget-improved", | ||
"version": "1.3.0", | ||
"description": "wget in nodejs, forked from wget to add improvements and help maintain the project", | ||
"version": "1.4.0", | ||
"description": "wget in nodejs, forked from wuchengwei/node-wget to add improvements and help maintain the project", | ||
"keywords": ["download", "http", "https", "ftp", "proxy", "wget"], | ||
@@ -16,4 +16,8 @@ "author": "Michael Barajas <michael.a.barajas@gmail.com>", | ||
], | ||
"homepage": "https://github.com/bearjaws/wget-improved", | ||
"homepage": "https://github.com/bearjaws/node-wget", | ||
"bin": { | ||
"nwget": "./bin/nwget" | ||
}, | ||
"dependencies": { | ||
"minimist": "1.2.0", | ||
"tunnel": "0.0.2" | ||
@@ -20,0 +24,0 @@ }, |
@@ -5,14 +5,17 @@ # wget-improved | ||
Improvements over old wget module | ||
- Handles 302 redirects (including infinite redirect loops) | ||
- Passes URL parameters | ||
- Better error reporting | ||
- Does not write using append (uses w+ identical to wget) | ||
- Handles gzip compression, allow you to automatically gunzip the stream | ||
Improvements over [wuchengwei/node-wget](https://github.com/wuchengwei/node-wget) | ||
- Handles 302 redirects (including infinite redirect loops) | ||
- Passes URL parameters | ||
- Better error reporting | ||
- Does not write using append (uses w+ identical to wget) | ||
- Handles gzip compression, allow you to automatically gunzip the stream | ||
## Install | ||
# Installing | ||
``` | ||
npm install wget-improved --save | ||
``` | ||
## download(src, output, options) | ||
```js | ||
@@ -23,3 +26,3 @@ var wget = require('wget-improved'); | ||
var options = { | ||
//see options below | ||
// see options below | ||
}; | ||
@@ -41,5 +44,2 @@ var download = wget.download(src, output, options); | ||
<a name="request" /> | ||
## request(options, callback) | ||
@@ -78,3 +78,5 @@ | ||
``` | ||
#download and request method options | ||
## options | ||
```js | ||
@@ -93,4 +95,14 @@ | ||
## CLI | ||
#Todo | ||
Enable gzip when using request method | ||
```bash | ||
# If installed globally | ||
nwget https://raw.github.com/Fyrd/caniuse/master/data.json -O /tmp/data.json | ||
# If not installed globally | ||
./node_modules/.bin/nwget https://raw.github.com/Fyrd/caniuse/master/data.json -O /tmp/data.json | ||
``` | ||
## Todo | ||
- Enable gzip when using request method |
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
13261
8
0
104
2
+ Addedminimist@1.2.0
+ Addedminimist@1.2.0(transitive)