New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

wget-improved

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wget-improved - npm Package Compare versions

Comparing version 1.3.0 to 1.4.0

bin/nwget

10

package.json
{
"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
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc