{"name":"http-proxy-agent","version":"4.0.0","description":"An HTTP(s) proxy `http.Agent` implementation for HTTP","main":"dist/index","typings":"dist/index","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":{"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":"ef87c815ce99b9a00ca396662a40897ac8d86ebe","homepage":"https://github.com/TooTallNate/node-http-proxy-agent#readme","_id":"http-proxy-agent@4.0.0","_nodeVersion":"10.17.0","_npmVersion":"6.13.4","dist":{"integrity":"sha512-GX0FA6+IcDf4Oxc/FBWgYj4zKgo/DnZrksaG9jyuQLExs6xlX+uI5lcA8ymM3JaZTRrF/4s2UX19wJolyo7OBA==","shasum":"6b74d332e1934a1107b97e97de4a00e267c790fe","tarball":"http://registry-npm.ywwl.com/http-proxy-agent/download/http-proxy-agent-4.0.0.tgz","fileCount":8,"unpackedSize":15444,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeKgKBCRA9TVsSAnZWagAAspkQAInHRDnNGOiuo4DvVhJc\nl8l8W74JSqBN+AAYUHfPLBd/gECoMu19TWUBp/0u9JSb23JDCLyZElwQH1yZ\nS5jHqH6WKUpvH353oH99iUy0m3DO4N4Cvlk4mEgVguaxBQwtJgoAdq8GbJd5\njePao85/+D0Ybx+g/uHJYKTC8yCKAw7DJnPoVUgsLv85mQKiQUS7s0zt9PR2\nf9iZS+j869phg8pN5E6Qo7RtbYwk2LFbQ1jFbsPEGAoVIXkMmw2Oc2LNoobR\nYkljYDOJB2OFMFW+kj6vqO0vkbrOBDlkj/iWJGbYksnWvbGUDZr3Tc34HK78\nGPis/YzK+3dyzDSOqj4YUItuc5CpQZl0kpzp4nLHP6IRG2x89TSvljoEJyLI\nQe+QMBhKQXmS/q6knAkSiwY6wNdIdhZxFd3pogwK7/li7YHRqczB2GX+g9e/\ns+vUCMDBumwrQf6eus1AaaRD5CqNmQzxch/0bneKC75ZeoEXsgjH/nnL8O4h\n55oXQhkcqy+Lq49cqWpJ1zlpc8gIf1wFZNpsLf+KqKNA3T9laHFq/vnP8VAx\nZwix1FVYer1xWZUj4E9/RcyvfQOeIBgLJvpb/gzC/21zD4DKhbCwcLghncf+\nZhUwb2uL3VGm29oPoSd1dBm4FAClWpPixwQS/fTPeWasS/nOCWc0OwLVXYu6\nnQos\r\n=M8Sk\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDi7A2VpVHgorXigU9pObGkRESDNCecKLr0WzyyaGJGAAIhAJ0dSDK8MZKC6tdQVJmfzTSBmGkwWEuKNZFhjdZoI6Py"}],"size":5351,"noattachment":false,"key":"/http-proxy-agent/-/http-proxy-agent-4.0.0.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.0_1579811456596_0.8577857415122601"},"_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":1579811456749,"_cnpm_publish_time":1579811456749,"dist-tags":{"latest":"9.1.0"}}