{
  "name": "wget-improved",
  "version": "1.1.1",
  "description": "wget in nodejs, forked from wget to add improvements and help maintain the project",
  "keywords": [
    "download",
    "http",
    "https",
    "ftp",
    "proxy",
    "wget"
  ],
  "author": {
    "name": "Michael Barajas",
    "email": "michael.a.barajas@gmail.com"
  },
  "repository": {
    "type": "git",
    "url": "git://github.com/bearjaws/node-wget.git"
  },
  "contributors": [
    {
      "name": "Michael Barajas"
    }
  ],
  "homepage": "https://github.com/bearjaws/wget-improved",
  "dependencies": {
    "tunnel": "0.0.2"
  },
  "engines": {
    "node": ">= 0.6.18"
  },
  "readme": "# wget-improved\nwget-improved simplifies retrieving files from any URL\nImprovements over old wget module\n  - Handles 302 redirects (including infinite redirect loops)\n  - Passes URL parameters\n  - Better error reporting\n  - Does not write using append (uses w+ identical to wget)\n  - Handles gzip compression, allow you to automatically gunzip the stream\n# Installing\n```\nnpm install wget-improved --save\n```\n```js\nvar wget = require('wget-improved');\nvar src = 'http://nodejs.org/images/logo.svg';\nvar output = '/tmp/logo.svg';\nvar options = {\n//see options below\n};\nvar download = wget.download(src, output, options);\ndownload.on('error', function(err) {\n    console.log(err);\n});\ndownload.on('end', function(output) {\n    console.log(output);\n});\ndownload.on('progress', function(progress) {\n    // code to show progress bar\n});\n```\n<a name=\"request\" />\n## request(options, callback)\n```js\nvar wget = require('wget');\nvar options = {\n    protocol: 'https',\n    host: 'raw.github.com',\n    path: '/Fyrd/caniuse/master/data.json',\n    proxy: 'http://host:port',\n    method: 'GET'\n};\nvar req = wget.request(options, function(res) {\n    var content = '';\n    if (res.statusCode === 200) {\n        res.on('error', function(err) {\n            console.log(err);\n        });\n        res.on('data', function(chunk) {\n            content += chunk;\n        });\n        res.on('end', function() {\n            console.log(content);\n        });\n    } else {\n        console.log('Server respond ' + res.statusCode);\n    }\n});\nreq.end();\nreq.on('error', function(err) {\n    console.log(err);\n});\n```\n#download and request method options\n```js\noptions = {}\n    // Set to true to have any gzip stream automatically decompressed before saving\n    options.gunzip = false;\n    options.proxy = {};\n        options.proxy.protocol = 'http';\n        options.proxy.host = 'someproxy.org';\n        options.proxy.port = 1337;\n        options.proxy.proxyAuth = '{basic auth}';\n        options.proxy.headers = {'User-Agent': 'Node'};\n```\n#Todo\nEnable gzip when using request method",
  "bugs": {
    "url": "https://github.com/bearjaws/node-wget/issues"
  },
  "_id": "wget-improved@1.1.1",
  "dist": {
    "shasum": "ce8561fa8ba5777a04f46277d3798d48aa7bbbb3"
  },
  "_from": "wget-improved@*",
  "_resolved": "https://registry.npmjs.org/wget-improved/-/wget-improved-1.1.1.tgz"
}
