{
  "_args": [
    [
      "agent-base@https://registry.npmjs.org/agent-base/-/agent-base-1.0.2.tgz",
      "D:\\work\\3\\s"
    ]
  ],
  "_from": "agent-base@>=1.0.1 <1.1.0",
  "_id": "agent-base@1.0.2",
  "_inCache": true,
  "_location": "/agent-base",
  "_phantomChildren": {},
  "_requested": {
    "name": "agent-base",
    "raw": "agent-base@https://registry.npmjs.org/agent-base/-/agent-base-1.0.2.tgz",
    "rawSpec": "https://registry.npmjs.org/agent-base/-/agent-base-1.0.2.tgz",
    "scope": null,
    "spec": "https://registry.npmjs.org/agent-base/-/agent-base-1.0.2.tgz",
    "type": "remote"
  },
  "_requiredBy": [
    "/http-proxy-agent",
    "/https-proxy-agent"
  ],
  "_resolved": "https://registry.npmjs.org/agent-base/-/agent-base-1.0.2.tgz",
  "_shasum": "6890d3fb217004b62b70f8928e0fae5f8952a706",
  "_shrinkwrap": null,
  "_spec": "agent-base@https://registry.npmjs.org/agent-base/-/agent-base-1.0.2.tgz",
  "_where": "D:\\work\\3\\s",
  "author": {
    "email": "nathan@tootallnate.net",
    "name": "Nathan Rajlich",
    "url": "http://n8.io/"
  },
  "bugs": {
    "url": "https://github.com/TooTallNate/node-agent-base/issues"
  },
  "dependencies": {},
  "description": "Turn a function into an `http.Agent` instance",
  "devDependencies": {
    "mocha": "2"
  },
  "homepage": "https://github.com/TooTallNate/node-agent-base#readme",
  "keywords": [
    "http",
    "agent",
    "base",
    "barebones",
    "https"
  ],
  "license": "MIT",
  "main": "agent.js",
  "name": "agent-base",
  "optionalDependencies": {},
  "readme": "agent-base\n==========\n### Turn a function into an `http.Agent` instance\n[![Build Status](https://travis-ci.org/TooTallNate/node-agent-base.png?branch=master)](https://travis-ci.org/TooTallNate/node-agent-base)\n\nThis module provides an `http.Agent` generator. That is, you pass it an async\ncallback function, and it returns a new `http.Agent` instance that will invoke the\ngiven callback function when sending outbound HTTP requests.\n\n#### Some subclasses:\n\nHere's some more interesting uses of `agent-base`. Send a pull request to\nlist yours!\n\n * [`http-proxy-agent`][http-proxy-agent]: An HTTP(s) proxy `http.Agent` implementation for HTTP endpoints\n * [`https-proxy-agent`][https-proxy-agent]: An HTTP(s) proxy `http.Agent` implementation for HTTPS endpoints\n * [`pac-proxy-agent`][pac-proxy-agent]: A PAC file proxy `http.Agent` implementation for HTTP and HTTPS\n * [`socks-proxy-agent`][socks-proxy-agent]: A SOCKS (v4a) proxy `http.Agent` implementation for HTTP and HTTPS\n\n\nInstallation\n------------\n\nInstall with `npm`:\n\n``` bash\n$ npm install agent-base\n```\n\n\nExample\n-------\n\nHere's a minimal example that creates a new `net.Socket` connection to the server\nfor every HTTP request (i.e. the equivalent of `agent: false` option):\n\n``` js\nvar url = require('url');\nvar net = require('net');\nvar http = require('http');\nvar agent = require('agent-base');\n\nvar endpoint = 'http://nodejs.org/api/';\nvar opts = url.parse(endpoint);\n\n// This is the important part!\nopts.agent = agent(function (req, opts, fn) {\n  if (!opts.port) opts.port = 80;\n  var socket = net.connect(opts);\n  fn(null, socket);\n});\n\n// Everything else works just like normal...\nhttp.get(opts, function (res) {\n  console.log('\"response\" event!', res.headers);\n  res.pipe(process.stdout);\n});\n```\n\n\nLicense\n-------\n\n(The MIT License)\n\nCopyright (c) 2013 Nathan Rajlich &lt;nathan@tootallnate.net&gt;\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n[http-proxy-agent]: https://github.com/TooTallNate/node-http-proxy-agent\n[https-proxy-agent]: https://github.com/TooTallNate/node-https-proxy-agent\n[pac-proxy-agent]: https://github.com/TooTallNate/node-pac-proxy-agent\n[socks-proxy-agent]: https://github.com/TooTallNate/node-socks-proxy-agent\n",
  "readmeFilename": "README.md",
  "repository": {
    "type": "git",
    "url": "git://github.com/TooTallNate/node-agent-base.git"
  },
  "scripts": {
    "test": "mocha --reporter spec"
  },
  "version": "1.0.2"
}
