{"name":"http-proxy-agent","version":"4.0.1","description":"An HTTP(s) proxy `http.Agent` implementation for HTTP","main":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"prebuild":"rimraf dist","build":"tsc","test":"mocha","test-lint":"eslint src --ext .js,.ts","prepublishOnly":"npm run build"},"repository":{"type":"git","url":"git://github.com/TooTallNate/node-http-proxy-agent.git"},"keywords":["http","proxy","endpoint","agent"],"author":{"name":"Nathan Rajlich","email":"nathan@tootallnate.net","url":"http://n8.io/"},"license":"MIT","bugs":{"url":"https://github.com/TooTallNate/node-http-proxy-agent/issues"},"dependencies":{"@tootallnate/once":"1","agent-base":"6","debug":"4"},"devDependencies":{"@types/debug":"4","@types/node":"^12.12.11","@typescript-eslint/eslint-plugin":"1.6.0","@typescript-eslint/parser":"1.1.0","eslint":"5.16.0","eslint-config-airbnb":"17.1.0","eslint-config-prettier":"4.1.0","eslint-import-resolver-typescript":"1.1.1","eslint-plugin-import":"2.16.0","eslint-plugin-jsx-a11y":"6.2.1","eslint-plugin-react":"7.12.4","mocha":"^6.2.2","proxy":"1","rimraf":"^3.0.0","typescript":"^3.5.3"},"engines":{"node":">= 6"},"gitHead":"d41fd2093cc0ef2314fd5a6fd42a5eb36d728c08","homepage":"https://github.com/TooTallNate/node-http-proxy-agent#readme","_id":"http-proxy-agent@4.0.1","_nodeVersion":"12.15.0","_npmVersion":"6.13.7","dist":{"integrity":"sha512-k0zdNgqWTGA6aeIRVpvfVob4fL52dTfaehylg0Y4UvSySvOq/Y+BOyPrgpUrA7HylqvU8vIZGsRuXmspskV0Tg==","shasum":"8a8c8ef7f5932ccf953c296ca8291b95aa74aa3a","tarball":"http://registry-npm.ywwl.com/http-proxy-agent/download/http-proxy-agent-4.0.1.tgz","fileCount":8,"unpackedSize":17062,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeP0sqCRA9TVsSAnZWagAA4aIP/2vNJJ547LqmfvKYieV9\naauIFnOO7w3xD9RcG4c6R6Qr7Iq/OegqE/DRyrIWJkOHV/2RiVds/tG7csuq\ntaCcDGKTPa9P5jTjr//GtNRGcewWvnnTzBCOMQ9JJnYZHQwvSwgY6aCiwPEn\nIBnEOvMfgwpf6cEbPmfvyM22o7HvvSeXA53eAM/ix0jrYcnPk57elLPu+6il\nCPmjCEMjLrFZOUxPWxRIHtRTIiwsn7D48lWNM+HCkPdO4v+iuuICbmNaFW41\ndsRr3S/XFz8UqtIyBKU4OMSsLwc8GiLMPLZamBQgO+yZTxblpauRLV5RCX/F\nxZUyKr7rGu56w1GEEilSRkaH/y/nVdQ75pPNg1TfmsPEJYwxHx1am0sSdXZo\n1fZ78xpvHqG40D+vNdrKCrE7sjejJd6+6tSLBYWUwi4RCb72vkhOs1zHwJT8\nO2iqfkj8/mLVot5CNGqlTIQ4ovNUhI5LmjDZZZMVZWC2o2lldBe1VED0uIbz\npanEeCA6dcymH1FM4teuLRp9hUChL8SJSq2ObdP1g915LGTDrnDDCeoVPWeE\nFdiE0ctiL/HpGeVmtxG8VTPU2ahpGL/VBBeBP6VqnapkXw0y1u+SiJOb5mZH\nLB6V/F/vG3+ygxoarI/3XSRpi3VWZw5XhptTkPh+MUoiNwXBW1qORzdAW8uE\nwFMK\r\n=zGOA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDNhGHlz/yaRmo2IfqU7VHGyLRqRqm3xf3d1wifUlFXagIhAPXG23vOOUi9mKTdh4TIGZrmhpbNXan/cb9THsvCXgqf"}],"size":5834,"noattachment":false,"key":"/http-proxy-agent/-/http-proxy-agent-4.0.1.tgz"},"maintainers":[{"name":"tootallnate","email":"nathan@tootallnate.net"}],"_npmUser":{"name":"tootallnate","email":"nathan@tootallnate.net"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/http-proxy-agent_4.0.1_1581206314112_0.7457055156138721"},"_hasShrinkwrap":false,"readme":"http-proxy-agent\n================\n### An HTTP(s) proxy `http.Agent` implementation for HTTP\n\nThis module provides an `http.Agent` implementation that connects to a specified\nHTTP or HTTPS proxy server, and can be used with the built-in `http` module.\n\n__Note:__ For HTTP proxy usage with the `https` module, check out\n[`https-proxy-agent`](../https-proxy-agent).\n\n\nExample\n-------\n\n```ts\nimport * as http from 'http';\nimport { HttpProxyAgent } from 'http-proxy-agent';\n\nconst agent = new HttpProxyAgent('http://168.63.76.32:3128');\n\nhttp.get('http://nodejs.org/api/', { agent }, (res) => {\n  console.log('\"response\" event!', res.headers);\n  res.pipe(process.stdout);\n});\n```\n\nAPI\n---\n\n### new HttpProxyAgent(proxy: string | URL, options?: HttpProxyAgentOptions)\n\nThe `HttpProxyAgent` class implements an `http.Agent` subclass that connects\nto the specified \"HTTP(s) proxy server\" in order to proxy HTTP requests.\n\nThe `proxy` argument is the URL for the proxy server.\n\nThe `options` argument accepts the usual `http.Agent` constructor options, and\nsome additional properties:\n\n * `headers` - Object containing additional headers to send to the proxy server\n   in each request. This may also be a function that returns a headers object.\n  \n   **NOTE:** If your proxy does not strip these headers from the request, they\n   will also be sent to the destination server.","publish_time":1581206314221,"_cnpm_publish_time":1581206314221,"dist-tags":{"latest":"9.1.0"}}