{"_id":"koa-proxies","_rev":"301129","name":"koa-proxies","description":"Http Proxy Middleware for Koa@2.x/next","dist-tags":{"latest":"0.12.4"},"maintainers":[{"name":"vagusx","email":""}],"time":{"modified":"2024-02-04T02:33:29.000Z","created":"2016-12-20T06:37:22.316Z","0.12.4":"2023-11-04T07:17:39.640Z","0.12.3":"2022-12-05T05:55:04.465Z","0.12.2":"2022-02-23T12:30:23.329Z","0.12.1":"2021-04-08T05:11:26.977Z","0.11.0":"2020-02-09T09:00:53.088Z","0.10.0":"2020-02-07T09:34:22.215Z","0.9.0":"2019-10-11T17:09:43.741Z","0.8.1":"2018-10-27T09:41:06.357Z","0.8.0":"2018-10-26T08:28:27.374Z","0.7.0":"2018-04-04T02:06:58.530Z","0.6.2":"2017-12-10T13:19:43.427Z","0.6.1":"2017-08-29T07:06:57.265Z","0.6.0":"2017-08-04T11:34:53.416Z","0.5.2":"2017-07-30T03:41:10.300Z","0.5.1":"2017-07-27T05:50:51.717Z","0.5.0":"2017-07-05T23:59:16.809Z","0.4.0":"2017-07-05T02:52:07.245Z","0.3.0":"2016-12-26T13:42:32.518Z","0.2.0":"2016-12-20T06:45:42.142Z","0.1.0":"2016-12-20T06:37:22.316Z"},"users":{},"author":{"name":"vagusX"},"repository":{"type":"git","url":"git+https://github.com/vagusX/koa-proxies.git"},"versions":{"0.12.4":{"name":"koa-proxies","description":"Http Proxy Middleware for Koa@2.x/next","version":"0.12.4","keywords":["koa","middleware","proxy","proxies"],"main":"index.js","typings":"index.d.ts","scripts":{"test":"nyc mocha","coverage":"nyc report --reporter=lcov --reporter=html && codecov -f .nyc_output/*.json","ci":"npm run test && npm run coverage","lint":"eslint index.js test/","version":"standard-version","pub":"npm run version && npm publish"},"repository":{"type":"git","url":"git+https://github.com/vagusX/koa-proxies.git"},"publishConfig":{"registry":"https://registry.npmjs.org"},"author":{"name":"vagusX"},"license":"MIT","bugs":{"url":"https://github.com/vagusX/koa-proxies/issues"},"homepage":"https://github.com/vagusX/koa-proxies#readme","husky":{"hooks":{"pre-commit":"lint-staged","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"*.js":"npm run lint"},"devDependencies":{"@commitlint/cli":"^8.2.0","@commitlint/config-conventional":"^8.2.0","@types/koa":"^2.11.0","chai":"^4.1.2","chai-http":"^4.0.0","codecov":"^3.0.4","eslint":"^6.5.1","eslint-config-standard":"^14.1.0","eslint-plugin-import":"^2.18.2","eslint-plugin-mocha":"^6.1.1","eslint-plugin-node":"^11.0.0","eslint-plugin-promise":"^4.2.1","eslint-plugin-standard":"^4.0.1","husky":"^4.0.2","koa":"^2.5.2","lint-staged":"^10.5.1","mocha":"^8.2.1","nyc":"^15.1.0","sinon":"^9.2.1","sinon-chai":"^3.5.0","standard-version":"^9.3.2"},"dependencies":{"http-proxy":"^1.18.1","path-match":"^1.2.4","uuid":"^8.3.2"},"peerDependencies":{"koa":">=2"},"_id":"koa-proxies@0.12.4","gitHead":"5653d31da2f4116b847e074d46e055f8b09d53b2","_nodeVersion":"20.8.1","_npmVersion":"10.1.0","dist":{"shasum":"6e7451321c4f015048b5db9a329681e31c5abdb5","size":5516,"noattachment":false,"key":"/koa-proxies/-/koa-proxies-0.12.4.tgz","tarball":"http://name.csiicloud.com:7001/koa-proxies/download/koa-proxies-0.12.4.tgz"},"_npmUser":{"name":"vagusx","email":"onlylae@sina.com"},"directories":{},"maintainers":[{"name":"vagusx","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/koa-proxies_0.12.4_1699082259444_0.6337741820337817"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-11-04T07:17:39.640Z","publish_time":1699082259640,"_source_registry_name":"default","_cnpm_publish_time":1699082259640},"0.12.3":{"name":"koa-proxies","description":"Http Proxy Middleware for Koa@2.x/next","version":"0.12.3","keywords":["koa","middleware","proxy","proxies"],"main":"index.js","typings":"index.d.ts","scripts":{"test":"nyc mocha","coverage":"nyc report --reporter=lcov --reporter=html && codecov -f .nyc_output/*.json","ci":"npm run test && npm run coverage","lint":"eslint index.js test/","version":"standard-version","pub":"npm run version && npm publish"},"repository":{"type":"git","url":"git+https://github.com/vagusX/koa-proxies.git"},"publishConfig":{"registry":"https://registry.npmjs.org"},"author":{"name":"vagusX"},"license":"MIT","bugs":{"url":"https://github.com/vagusX/koa-proxies/issues"},"homepage":"https://github.com/vagusX/koa-proxies#readme","husky":{"hooks":{"pre-commit":"lint-staged","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"*.js":"npm run lint"},"devDependencies":{"@commitlint/cli":"^8.2.0","@commitlint/config-conventional":"^8.2.0","@types/koa":"^2.11.0","chai":"^4.1.2","chai-http":"^4.0.0","codecov":"^3.0.4","eslint":"^6.5.1","eslint-config-standard":"^14.1.0","eslint-plugin-import":"^2.18.2","eslint-plugin-mocha":"^6.1.1","eslint-plugin-node":"^11.0.0","eslint-plugin-promise":"^4.2.1","eslint-plugin-standard":"^4.0.1","husky":"^4.0.2","koa":"^2.5.2","lint-staged":"^10.5.1","mocha":"^8.2.1","nyc":"^15.1.0","sinon":"^9.2.1","sinon-chai":"^3.5.0","standard-version":"^9.3.2"},"dependencies":{"http-proxy":"^1.18.1","path-match":"^1.2.4","uuid":"^8.3.2"},"peerDependencies":{"koa":">=2"},"gitHead":"0d7d96729fe5b7a02a7cabf02c555c8f2832f148","_id":"koa-proxies@0.12.3","_nodeVersion":"16.14.2","_npmVersion":"8.5.0","dist":{"shasum":"84db0896421208c53567e3746c55b20da2d16d0f","size":4868,"noattachment":false,"key":"/koa-proxies/-/koa-proxies-0.12.3.tgz","tarball":"http://name.csiicloud.com:7001/koa-proxies/download/koa-proxies-0.12.3.tgz"},"_npmUser":{"name":"vagusx","email":"onlylae@sina.com"},"directories":{},"maintainers":[{"name":"vagusx","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/koa-proxies_0.12.3_1670219704296_0.01757073819374355"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-12-05T05:55:16.551Z","publish_time":1670219704465,"_cnpm_publish_time":1670219704465},"0.12.2":{"name":"koa-proxies","description":"Http Proxy Middleware for Koa@2.x/next","version":"0.12.2","keywords":["koa","middleware","proxy","proxies"],"main":"index.js","typings":"index.d.ts","scripts":{"test":"nyc mocha","coverage":"nyc report --reporter=lcov --reporter=html && codecov -f .nyc_output/*.json","ci":"npm run test && npm run coverage","lint":"eslint index.js test/","version":"standard-version","pub":"npm run version && npm publish"},"repository":{"type":"git","url":"git+https://github.com/vagusX/koa-proxies.git"},"publishConfig":{"registry":"https://registry.npmjs.org"},"author":{"name":"vagusX"},"license":"MIT","bugs":{"url":"https://github.com/vagusX/koa-proxies/issues"},"homepage":"https://github.com/vagusX/koa-proxies#readme","husky":{"hooks":{"pre-commit":"lint-staged","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"*.js":"npm run lint"},"devDependencies":{"@commitlint/cli":"^8.2.0","@commitlint/config-conventional":"^8.2.0","@types/koa":"^2.11.0","chai":"^4.1.2","chai-http":"^4.0.0","codecov":"^3.0.4","eslint":"^6.5.1","eslint-config-standard":"^14.1.0","eslint-plugin-import":"^2.18.2","eslint-plugin-mocha":"^6.1.1","eslint-plugin-node":"^11.0.0","eslint-plugin-promise":"^4.2.1","eslint-plugin-standard":"^4.0.1","husky":"^4.0.2","koa":"^2.5.2","lint-staged":"^10.5.1","mocha":"^8.2.1","nyc":"^15.1.0","sinon":"^9.2.1","sinon-chai":"^3.5.0","standard-version":"^9.3.2"},"dependencies":{"http-proxy":"^1.18.1","path-match":"^1.2.4","uuid":"^8.3.2"},"peerDependencies":{"koa":">=2"},"gitHead":"0d9619b873a5d7e6c109c2234f32efaaa2fcdba8","_id":"koa-proxies@0.12.2","_nodeVersion":"14.17.4","_npmVersion":"7.8.0","dist":{"shasum":"c39b53d2488c03fe89a2c78d99630137fb47f5cd","size":4710,"noattachment":false,"key":"/koa-proxies/-/koa-proxies-0.12.2.tgz","tarball":"http://name.csiicloud.com:7001/koa-proxies/download/koa-proxies-0.12.2.tgz"},"_npmUser":{"name":"vagusx","email":"onlylae@sina.com"},"directories":{},"maintainers":[{"name":"vagusx","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/koa-proxies_0.12.2_1645619423114_0.003975122782079232"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-02-23T12:30:28.480Z","publish_time":1645619423329,"_cnpm_publish_time":1645619423329},"0.12.1":{"name":"koa-proxies","description":"Http Proxy Middleware for Koa@2.x/next","version":"0.12.1","keywords":["koa","middleware","proxy","proxies"],"main":"index.js","typings":"index.d.ts","scripts":{"test":"nyc mocha","coverage":"nyc report --reporter=lcov --reporter=html && codecov -f .nyc_output/*.json","ci":"npm run test && npm run coverage","lint":"eslint index.js test/","version":"standard-version","pub":"npm run version && npm publish"},"repository":{"type":"git","url":"git+https://github.com/vagusX/koa-proxies.git"},"publishConfig":{"registry":"https://registry.npmjs.org"},"author":{"name":"vagusX"},"license":"MIT","bugs":{"url":"https://github.com/vagusX/koa-proxies/issues"},"homepage":"https://github.com/vagusX/koa-proxies#readme","husky":{"hooks":{"pre-commit":"lint-staged","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"*.js":"npm run lint"},"devDependencies":{"@commitlint/cli":"^8.2.0","@commitlint/config-conventional":"^8.2.0","@types/koa":"^2.11.0","chai":"^4.1.2","chai-http":"^4.0.0","codecov":"^3.0.4","eslint":"^6.5.1","eslint-config-standard":"^14.1.0","eslint-plugin-import":"^2.18.2","eslint-plugin-mocha":"^6.1.1","eslint-plugin-node":"^11.0.0","eslint-plugin-promise":"^4.2.1","eslint-plugin-standard":"^4.0.1","husky":"^4.0.2","koa":"^2.5.2","lint-staged":"^10.5.1","mocha":"^8.2.1","nyc":"^15.1.0","sinon":"^9.2.1","sinon-chai":"^3.5.0"},"dependencies":{"http-proxy":"^1.18.1","path-match":"^1.2.4"},"peerDependencies":{"koa":">=2"},"gitHead":"1a4b5d0349e0d011b6cb0e0e2bd997e0271253fa","_id":"koa-proxies@0.12.1","_nodeVersion":"12.18.2","_npmVersion":"7.8.0","dist":{"shasum":"c0c5f2332b791f095b5d0d77cea15237514acebd","size":4340,"noattachment":false,"key":"/koa-proxies/-/koa-proxies-0.12.1.tgz","tarball":"http://name.csiicloud.com:7001/koa-proxies/download/koa-proxies-0.12.1.tgz"},"_npmUser":{"name":"vagusx","email":"onlylae@sina.com"},"directories":{},"maintainers":[{"name":"vagusx","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/koa-proxies_0.12.1_1617858686834_0.8539207001727551"},"_hasShrinkwrap":false,"publish_time":1617858686977,"_cnpm_publish_time":1617858686977,"_cnpmcore_publish_time":"2021-12-14T03:53:47.135Z"},"0.11.0":{"name":"koa-proxies","description":"Http Proxy Middleware for Koa@2.x/next","keywords":["koa","middleware","proxy","proxies"],"main":"index.js","typings":"index.d.ts","scripts":{"semantic-release":"semantic-release","test":"nyc mocha","coverage":"nyc report --reporter=lcov --reporter=html && codecov -f .nyc_output/*.json","ci":"npm run test && npm run coverage","lint":"eslint index.js test/"},"repository":{"type":"git","url":"git+https://github.com/vagusX/koa-proxies.git"},"author":{"name":"vagusX"},"license":"MIT","bugs":{"url":"https://github.com/vagusX/koa-proxies/issues"},"homepage":"https://github.com/vagusX/koa-proxies#readme","husky":{"hooks":{"pre-commit":"lint-staged","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"*.js":"npm run lint"},"devDependencies":{"@commitlint/cli":"^8.2.0","@commitlint/config-conventional":"^8.2.0","@types/koa":"^2.11.0","chai":"^4.1.2","chai-http":"^4.0.0","codecov":"^3.0.4","eslint":"^6.5.1","eslint-config-standard":"^14.1.0","eslint-plugin-import":"^2.18.2","eslint-plugin-mocha":"^6.1.1","eslint-plugin-node":"^10.0.0","eslint-plugin-promise":"^4.2.1","eslint-plugin-standard":"^4.0.1","ghooks":"^2.0.2","husky":"^3.0.8","koa":"^2.5.2","lint-staged":"^10.0.0-0","mocha":"^6.0.0","nyc":"^12.0.2","semantic-release":"^15.1.5","sinon":"^7.2.4","sinon-chai":"^3.4.0"},"dependencies":{"http-proxy":"^1.16.2","path-match":"^1.2.4"},"peerDependencies":{"koa":">=2"},"version":"0.11.0","gitHead":"53401d58f2287fd6399c3661eb359f522abd9d54","_id":"koa-proxies@0.11.0","_nodeVersion":"10.19.0","_npmVersion":"6.13.7","dist":{"shasum":"43dde4260080f7cb0f284655f85cf654bbe9ec84","size":3432,"noattachment":false,"key":"/koa-proxies/-/koa-proxies-0.11.0.tgz","tarball":"http://name.csiicloud.com:7001/koa-proxies/download/koa-proxies-0.11.0.tgz"},"maintainers":[{"name":"vagusx","email":""}],"_npmUser":{"name":"vagusx","email":"onlylae@sina.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/koa-proxies_0.11.0_1581238852942_0.8792738827168884"},"_hasShrinkwrap":false,"publish_time":1581238853088,"_cnpm_publish_time":1581238853088,"_cnpmcore_publish_time":"2021-12-14T03:53:47.373Z"},"0.10.0":{"name":"koa-proxies","description":"Http Proxy Middleware for Koa@2.x/next","keywords":["koa","middleware","proxy","proxies"],"main":"index.js","scripts":{"semantic-release":"semantic-release","test":"nyc mocha","coverage":"nyc report --reporter=lcov --reporter=html && codecov -f .nyc_output/*.json","ci":"npm run test && npm run coverage","lint":"eslint index.js test/"},"repository":{"type":"git","url":"git+https://github.com/vagusX/koa-proxies.git"},"author":{"name":"vagusX"},"license":"MIT","bugs":{"url":"https://github.com/vagusX/koa-proxies/issues"},"homepage":"https://github.com/vagusX/koa-proxies#readme","husky":{"hooks":{"pre-commit":"lint-staged","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"*.js":"npm run lint"},"devDependencies":{"@commitlint/cli":"^8.2.0","@commitlint/config-conventional":"^8.2.0","chai":"^4.1.2","chai-http":"^4.0.0","codecov":"^3.0.4","eslint":"^6.5.1","eslint-config-standard":"^14.1.0","eslint-plugin-import":"^2.18.2","eslint-plugin-mocha":"^6.1.1","eslint-plugin-node":"^10.0.0","eslint-plugin-promise":"^4.2.1","eslint-plugin-standard":"^4.0.1","ghooks":"^2.0.2","husky":"^3.0.8","koa":"^2.5.2","lint-staged":"^10.0.0-0","mocha":"^6.0.0","nyc":"^12.0.2","semantic-release":"^15.1.5","sinon":"^7.2.4"},"dependencies":{"http-proxy":"^1.16.2","path-match":"^1.2.4"},"peerDependencies":{"koa":">=2"},"version":"0.10.0","gitHead":"5e3b06d17c7c26c770333c2a12946c2b43a68524","_id":"koa-proxies@0.10.0","_nodeVersion":"10.19.0","_npmVersion":"6.13.7","dist":{"shasum":"5b7f24211ff6ac805035bcb02a3eb672b685fced","size":3224,"noattachment":false,"key":"/koa-proxies/-/koa-proxies-0.10.0.tgz","tarball":"http://name.csiicloud.com:7001/koa-proxies/download/koa-proxies-0.10.0.tgz"},"maintainers":[{"name":"vagusx","email":""}],"_npmUser":{"name":"vagusx","email":"onlylae@sina.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/koa-proxies_0.10.0_1581068062106_0.8652237226533213"},"_hasShrinkwrap":false,"publish_time":1581068062215,"_cnpm_publish_time":1581068062215,"_cnpmcore_publish_time":"2021-12-14T03:53:47.576Z"},"0.9.0":{"name":"koa-proxies","description":"Http Proxy Middleware for Koa@2.x/next","keywords":["koa","middleware","proxy","proxies"],"main":"index.js","scripts":{"semantic-release":"semantic-release","test":"nyc mocha","coverage":"nyc report --reporter=lcov --reporter=html && codecov -f .nyc_output/*.json","ci":"npm run test && npm run coverage","lint":"eslint index.js test/"},"repository":{"type":"git","url":"git+https://github.com/vagusX/koa-proxies.git"},"author":{"name":"vagusX"},"license":"MIT","bugs":{"url":"https://github.com/vagusX/koa-proxies/issues"},"homepage":"https://github.com/vagusX/koa-proxies#readme","husky":{"hooks":{"pre-commit":"lint-staged","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"*.js":"npm run lint"},"devDependencies":{"@commitlint/cli":"^8.2.0","@commitlint/config-conventional":"^8.2.0","chai":"^4.1.2","chai-http":"^4.0.0","codecov":"^3.0.4","eslint":"^6.5.1","eslint-config-standard":"^14.1.0","eslint-plugin-import":"^2.18.2","eslint-plugin-mocha":"^6.1.1","eslint-plugin-node":"^10.0.0","eslint-plugin-promise":"^4.2.1","eslint-plugin-standard":"^4.0.1","ghooks":"^2.0.2","husky":"^3.0.8","koa":"^2.5.2","lint-staged":"^10.0.0-0","mocha":"^5.2.0","nyc":"^13.2.0","semantic-release":"^15.1.5","sinon":"^7.2.4"},"dependencies":{"http-proxy":"^1.16.2","path-match":"^1.2.4"},"peerDependencies":{"koa":">=2"},"version":"0.9.0","gitHead":"dc6780a03b7b0f6011ab486ce1c1afcf2cc4d199","_id":"koa-proxies@0.9.0","_nodeVersion":"10.16.3","_npmVersion":"6.12.0","dist":{"shasum":"b4324b7a4d65dda67127f21ea19e54d72f8e80d9","size":4367,"noattachment":false,"key":"/koa-proxies/-/koa-proxies-0.9.0.tgz","tarball":"http://name.csiicloud.com:7001/koa-proxies/download/koa-proxies-0.9.0.tgz"},"maintainers":[{"name":"vagusx","email":""}],"_npmUser":{"name":"vagusx","email":"onlylae@sina.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/koa-proxies_0.9.0_1570813783609_0.8670558058773579"},"_hasShrinkwrap":false,"publish_time":1570813783741,"_cnpm_publish_time":1570813783741,"_cnpmcore_publish_time":"2021-12-14T03:53:47.853Z"},"0.8.1":{"name":"koa-proxies","description":"Http Proxy Middleware for Koa@2.x/next","keywords":["koa","middleware","proxy","proxies"],"main":"index.js","scripts":{"semantic-release":"semantic-release","test":"nyc mocha","coverage":"nyc report --reporter=lcov --reporter=html && codecov -f .nyc_output/*.json","ci":"npm run test && npm run coverage"},"repository":{"type":"git","url":"git+https://github.com/vagusX/koa-proxies.git"},"config":{"ghooks":{"commit-msg":"node ./node_modules/.bin/validate-commit-msg"}},"author":{"name":"vagusX"},"license":"MIT","bugs":{"url":"https://github.com/vagusX/koa-proxies/issues"},"homepage":"https://github.com/vagusX/koa-proxies#readme","devDependencies":{"chai":"^4.1.2","chai-http":"^4.0.0","codecov":"^3.0.4","ghooks":"^2.0.2","koa":"^2.5.2","mocha":"^5.2.0","nyc":"^12.0.2","semantic-release":"^15.1.5","sinon":"^6.1.5","validate-commit-message":"^3.0.1"},"dependencies":{"http-proxy":"^1.16.2","path-match":"^1.2.4"},"peerDependencies":{"koa":">=2"},"version":"0.8.1","gitHead":"2d81f45ad86acd04ed7b1c93c1a249bd3fed0c1c","_id":"koa-proxies@0.8.1","_npmVersion":"6.4.1","_nodeVersion":"10.12.0","_npmUser":{"name":"vagusx","email":"onlylae@sina.com"},"dist":{"shasum":"717a5fae594a96f95818dfcadc30987e738034a1","size":4238,"noattachment":false,"key":"/koa-proxies/-/koa-proxies-0.8.1.tgz","tarball":"http://name.csiicloud.com:7001/koa-proxies/download/koa-proxies-0.8.1.tgz"},"maintainers":[{"name":"vagusx","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/koa-proxies_0.8.1_1540633266217_0.8220750430168899"},"_hasShrinkwrap":false,"publish_time":1540633266357,"_cnpm_publish_time":1540633266357,"_cnpmcore_publish_time":"2021-12-14T03:53:48.069Z"},"0.8.0":{"name":"koa-proxies","description":"Http Proxy Middleware for Koa@2.x/next","keywords":["koa","middleware","proxy","proxies"],"main":"index.js","scripts":{"semantic-release":"semantic-release","test":"nyc mocha","coverage":"nyc report --reporter=lcov --reporter=html && codecov -f .nyc_output/*.json","ci":"npm run test && npm run coverage"},"repository":{"type":"git","url":"git+https://github.com/vagusX/koa-proxies.git"},"config":{"ghooks":{"commit-msg":"node ./node_modules/.bin/validate-commit-msg"}},"author":{"name":"vagusX"},"license":"MIT","bugs":{"url":"https://github.com/vagusX/koa-proxies/issues"},"homepage":"https://github.com/vagusX/koa-proxies#readme","devDependencies":{"chai":"^4.1.2","chai-http":"^4.0.0","codecov":"^3.0.4","ghooks":"^2.0.2","koa":"^2.5.2","mocha":"^5.2.0","nyc":"^12.0.2","semantic-release":"^15.1.5","sinon":"^6.1.5","validate-commit-message":"^3.0.1"},"dependencies":{"http-proxy":"^1.16.2","path-match":"^1.2.4"},"peerDependencies":{"koa":">=2"},"version":"0.8.0","gitHead":"029852a5c12622e16e4ee48ad49c1b4f07dceed8","_id":"koa-proxies@0.8.0","_npmVersion":"6.4.1","_nodeVersion":"10.12.0","_npmUser":{"name":"vagusx","email":"onlylae@sina.com"},"dist":{"shasum":"7294f35525ebe3ff4a6a6d6d78e85c8438e71845","size":4085,"noattachment":false,"key":"/koa-proxies/-/koa-proxies-0.8.0.tgz","tarball":"http://name.csiicloud.com:7001/koa-proxies/download/koa-proxies-0.8.0.tgz"},"maintainers":[{"name":"vagusx","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/koa-proxies_0.8.0_1540542507162_0.5545369304279464"},"_hasShrinkwrap":false,"publish_time":1540542507374,"_cnpm_publish_time":1540542507374,"_cnpmcore_publish_time":"2021-12-14T03:53:48.280Z"},"0.7.0":{"name":"koa-proxies","version":"0.7.0","description":"Http Proxy Middleware for Koa@2.x/next","keywords":["koa","middleware","proxy","proxies"],"main":"index.js","scripts":{"semantic-release":"semantic-release pre && npm publish && semantic-release post"},"repository":{"type":"git","url":"git+https://github.com/vagusX/koa-proxies.git"},"config":{"ghooks":{"commit-msg":"node ./node_modules/.bin/validate-commit-msg"}},"author":{"name":"vagusX"},"license":"MIT","bugs":{"url":"https://github.com/vagusX/koa-proxies/issues"},"homepage":"https://github.com/vagusX/koa-proxies#readme","devDependencies":{"ghooks":"^2.0.2","semantic-release":"^8.2.0","validate-commit-message":"^3.0.1"},"dependencies":{"http-proxy":"^1.16.2","path-match":"^1.2.4"},"gitHead":"96e51351ba3e4bbf31bee47ad5041b5c21065710","_id":"koa-proxies@0.7.0","_npmVersion":"5.7.1","_nodeVersion":"8.9.3","_npmUser":{"name":"vagusx","email":"onlylae@sina.com"},"dist":{"shasum":"868a47aebad6d8a3c19aa0f4c03fa2a518ffbd2a","size":436863,"noattachment":false,"key":"/koa-proxies/-/koa-proxies-0.7.0.tgz","tarball":"http://name.csiicloud.com:7001/koa-proxies/download/koa-proxies-0.7.0.tgz"},"maintainers":[{"name":"vagusx","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/koa-proxies_0.7.0_1522807618415_0.4839429159245121"},"_hasShrinkwrap":false,"publish_time":1522807618530,"_cnpm_publish_time":1522807618530,"_cnpmcore_publish_time":"2021-12-14T03:53:49.285Z"},"0.6.2":{"name":"koa-proxies","version":"0.6.2","description":"Http Proxy Middleware for Koa@2.x/next","keywords":["koa","middleware","proxy","proxies"],"main":"index.js","scripts":{"semantic-release":"semantic-release pre && npm publish && semantic-release post"},"repository":{"type":"git","url":"git+https://github.com/vagusX/koa-proxies.git"},"config":{"ghooks":{"commit-msg":"node ./node_modules/.bin/validate-commit-msg"}},"author":{"name":"vagusX"},"license":"MIT","bugs":{"url":"https://github.com/vagusX/koa-proxies/issues"},"homepage":"https://github.com/vagusX/koa-proxies#readme","devDependencies":{"ghooks":"^2.0.2","semantic-release":"^8.2.0","validate-commit-message":"^3.0.1"},"dependencies":{"http-proxy":"^1.16.2","path-match":"^1.2.4"},"gitHead":"3594e3fd3cb4075596e6f7d4d2950335618a9cb7","_id":"koa-proxies@0.6.2","_npmVersion":"5.6.0","_nodeVersion":"8.7.0","_npmUser":{"name":"vagusx","email":"onlylae@sina.com"},"dist":{"shasum":"faa4343baf73f70862a00444e51aea4f21ac8957","size":437740,"noattachment":false,"key":"/koa-proxies/-/koa-proxies-0.6.2.tgz","tarball":"http://name.csiicloud.com:7001/koa-proxies/download/koa-proxies-0.6.2.tgz"},"maintainers":[{"name":"vagusx","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/koa-proxies-0.6.2.tgz_1512911983305_0.1842905217781663"},"directories":{},"publish_time":1512911983427,"_hasShrinkwrap":false,"_cnpm_publish_time":1512911983427,"_cnpmcore_publish_time":"2021-12-14T03:53:49.896Z"},"0.6.1":{"name":"koa-proxies","description":"Http Proxy Middleware for Koa@2.x/next","keywords":["koa","middleware","proxy","proxies"],"main":"index.js","scripts":{"semantic-release":"semantic-release pre && npm publish && semantic-release post"},"repository":{"type":"git","url":"git+https://github.com/vagusX/koa-proxies.git"},"config":{"ghooks":{"commit-msg":"node ./node_modules/.bin/validate-commit-msg"}},"author":{"name":"vagusX"},"license":"MIT","bugs":{"url":"https://github.com/vagusX/koa-proxies/issues"},"homepage":"https://github.com/vagusX/koa-proxies#readme","devDependencies":{"ghooks":"^1.3.2","semantic-release":"^6.3.2","validate-commit-message":"^3.0.1"},"dependencies":{"http-proxy":"^1.16.2","path-match":"^1.2.4"},"version":"0.6.1","gitHead":"e1a57d0ec2cef7874d8a3593bce9fe127a54b39c","_id":"koa-proxies@0.6.1","_shasum":"b58986d8554e2a50195c77b7fa20f2afe756be20","_from":".","_npmVersion":"3.10.10","_nodeVersion":"7.10.1","_npmUser":{"name":"vagusx","email":"onlylae@sina.com"},"dist":{"shasum":"b58986d8554e2a50195c77b7fa20f2afe756be20","size":7914,"noattachment":false,"key":"/koa-proxies/-/koa-proxies-0.6.1.tgz","tarball":"http://name.csiicloud.com:7001/koa-proxies/download/koa-proxies-0.6.1.tgz"},"maintainers":[{"name":"vagusx","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/koa-proxies-0.6.1.tgz_1503990416313_0.19458622904494405"},"directories":{},"publish_time":1503990417265,"_hasShrinkwrap":false,"_cnpm_publish_time":1503990417265,"_cnpmcore_publish_time":"2021-12-14T03:53:50.126Z"},"0.6.0":{"name":"koa-proxies","version":"0.6.0","description":"Http Proxy Middleware for Koa@2.x/next","keywords":["koa","middleware","proxy","proxies"],"main":"index.js","scripts":{"semantic-release":"semantic-release pre && npm publish && semantic-release post"},"repository":{"type":"git","url":"git+https://github.com/vagusX/koa-proxies.git"},"config":{"ghooks":{"commit-msg":"node ./node_modules/.bin/validate-commit-msg"}},"author":{"name":"vagusX"},"license":"MIT","bugs":{"url":"https://github.com/vagusX/koa-proxies/issues"},"homepage":"https://github.com/vagusX/koa-proxies#readme","devDependencies":{"ghooks":"^1.3.2","semantic-release":"^6.3.2","validate-commit-message":"^3.0.1"},"dependencies":{"http-proxy":"^1.16.2","path-match":"^1.2.4"},"gitHead":"167645051652d378c01a7e9271ead8db0c23d098","_id":"koa-proxies@0.6.0","_npmVersion":"5.3.0","_nodeVersion":"8.2.1","_npmUser":{"name":"vagusx","email":"onlylae@sina.com"},"dist":{"shasum":"a401c180cf9adce2eeef4ce182c6560251f6ddbf","size":3574,"noattachment":false,"key":"/koa-proxies/-/koa-proxies-0.6.0.tgz","tarball":"http://name.csiicloud.com:7001/koa-proxies/download/koa-proxies-0.6.0.tgz"},"maintainers":[{"name":"vagusx","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/koa-proxies-0.6.0.tgz_1501846493318_0.9664408608805388"},"directories":{},"publish_time":1501846493416,"_hasShrinkwrap":false,"_cnpm_publish_time":1501846493416,"_cnpmcore_publish_time":"2021-12-14T03:53:50.324Z"},"0.5.2":{"name":"koa-proxies","description":"Http Proxy Middleware for Koa@2.x/next","keywords":["koa","middleware","proxy","proxies"],"main":"index.js","scripts":{"semantic-release":"semantic-release pre && npm publish && semantic-release post"},"repository":{"type":"git","url":"git+https://github.com/vagusX/koa-proxies.git"},"config":{"ghooks":{"commit-msg":"node ./node_modules/.bin/validate-commit-msg"}},"author":{"name":"vagusX"},"license":"MIT","bugs":{"url":"https://github.com/vagusX/koa-proxies/issues"},"homepage":"https://github.com/vagusX/koa-proxies#readme","devDependencies":{"ghooks":"^1.3.2","semantic-release":"^6.3.2","validate-commit-message":"^3.0.1"},"dependencies":{"http-proxy":"^1.16.2","path-match":"^1.2.4"},"version":"0.5.2","gitHead":"a8707f73c4095973b28bd1bd177bda16e42c112e","_id":"koa-proxies@0.5.2","_shasum":"440039d7aa71ba0c8f73bbe48f9e4963de37cc88","_from":".","_npmVersion":"3.10.10","_nodeVersion":"7.10.1","_npmUser":{"name":"vagusx","email":"onlylae@sina.com"},"dist":{"shasum":"440039d7aa71ba0c8f73bbe48f9e4963de37cc88","size":7857,"noattachment":false,"key":"/koa-proxies/-/koa-proxies-0.5.2.tgz","tarball":"http://name.csiicloud.com:7001/koa-proxies/download/koa-proxies-0.5.2.tgz"},"maintainers":[{"name":"vagusx","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/koa-proxies-0.5.2.tgz_1501386069398_0.8407318892423064"},"directories":{},"publish_time":1501386070300,"_hasShrinkwrap":false,"deprecated":"Please upgrade this package to 0.6+","_cnpm_publish_time":1501386070300,"_cnpmcore_publish_time":"2021-12-14T03:53:50.610Z"},"0.5.1":{"name":"koa-proxies","description":"Http Proxy Middleware for Koa@2.x/next","keywords":["koa","middleware","proxy","proxies"],"main":"index.js","scripts":{"semantic-release":"semantic-release pre && npm publish && semantic-release post"},"repository":{"type":"git","url":"git+https://github.com/vagusX/koa-proxies.git"},"config":{"ghooks":{"commit-msg":"node ./node_modules/.bin/validate-commit-msg"}},"author":{"name":"vagusX"},"license":"MIT","bugs":{"url":"https://github.com/vagusX/koa-proxies/issues"},"homepage":"https://github.com/vagusX/koa-proxies#readme","devDependencies":{"ghooks":"^1.3.2","semantic-release":"^6.3.2","validate-commit-message":"^3.0.1"},"dependencies":{"http-proxy":"^1.16.2","path-match":"^1.2.4"},"version":"0.5.1","gitHead":"59786ad6ffd02cfe2ab3d571a7036c014a1e6e25","_id":"koa-proxies@0.5.1","_shasum":"c2799e3d2f28daa03030bc96ea5a71b8df49bede","_from":".","_npmVersion":"3.10.10","_nodeVersion":"7.10.1","_npmUser":{"name":"vagusx","email":"onlylae@sina.com"},"dist":{"shasum":"c2799e3d2f28daa03030bc96ea5a71b8df49bede","size":7756,"noattachment":false,"key":"/koa-proxies/-/koa-proxies-0.5.1.tgz","tarball":"http://name.csiicloud.com:7001/koa-proxies/download/koa-proxies-0.5.1.tgz"},"maintainers":[{"name":"vagusx","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/koa-proxies-0.5.1.tgz_1501134650775_0.2127595590427518"},"directories":{},"publish_time":1501134651717,"_hasShrinkwrap":false,"deprecated":"Please upgrade this package to 0.6+","_cnpm_publish_time":1501134651717,"_cnpmcore_publish_time":"2021-12-14T03:53:50.873Z"},"0.5.0":{"name":"koa-proxies","description":"Http Proxy Middleware for Koa@2.x/next","keywords":["koa","middleware","proxy","proxies"],"main":"index.js","scripts":{"semantic-release":"semantic-release pre && npm publish && semantic-release post"},"repository":{"type":"git","url":"git+https://github.com/vagusX/koa-proxies.git"},"config":{"ghooks":{"commit-msg":"node ./node_modules/.bin/validate-commit-msg"}},"author":{"name":"vagusX"},"license":"MIT","bugs":{"url":"https://github.com/vagusX/koa-proxies/issues"},"homepage":"https://github.com/vagusX/koa-proxies#readme","devDependencies":{"ghooks":"^1.3.2","semantic-release":"^6.3.2","validate-commit-message":"^3.0.1"},"dependencies":{"http-proxy":"^1.16.2","path-match":"^1.2.4"},"version":"0.5.0","gitHead":"0f2ebbe86455b6005a0ee2b3fb70420902693011","_id":"koa-proxies@0.5.0","_shasum":"dd54ecda1bda4ceb825eb0dc61e8bda91b30cfcb","_from":".","_npmVersion":"3.10.10","_nodeVersion":"7.10.0","_npmUser":{"name":"vagusx","email":"onlylae@sina.com"},"dist":{"shasum":"dd54ecda1bda4ceb825eb0dc61e8bda91b30cfcb","size":7691,"noattachment":false,"key":"/koa-proxies/-/koa-proxies-0.5.0.tgz","tarball":"http://name.csiicloud.com:7001/koa-proxies/download/koa-proxies-0.5.0.tgz"},"maintainers":[{"name":"vagusx","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/koa-proxies-0.5.0.tgz_1499299155889_0.019225709605962038"},"directories":{},"publish_time":1499299156809,"_hasShrinkwrap":false,"deprecated":"Please upgrade this package to 0.6+","_cnpm_publish_time":1499299156809,"_cnpmcore_publish_time":"2021-12-14T03:53:51.129Z"},"0.4.0":{"name":"koa-proxies","description":"Http Proxy Middleware for Koa@2.x/next","keywords":["koa","middleware","proxy","proxies"],"main":"index.js","scripts":{"semantic-release":"semantic-release pre && npm publish && semantic-release post"},"repository":{"type":"git","url":"git+https://github.com/vagusX/koa-proxies.git"},"config":{"ghooks":{"commit-msg":"node ./node_modules/.bin/validate-commit-msg"}},"author":{"name":"vagusX"},"license":"MIT","bugs":{"url":"https://github.com/vagusX/koa-proxies/issues"},"homepage":"https://github.com/vagusX/koa-proxies#readme","devDependencies":{"ghooks":"^1.3.2","semantic-release":"^6.3.2","validate-commit-message":"^3.0.1"},"dependencies":{"http-proxy":"^1.16.2"},"version":"0.4.0","gitHead":"5d5abb66c83a7289f13262afb93c15273a602a8e","_id":"koa-proxies@0.4.0","_shasum":"3049f4f97a23a035768c37d18b242182b3339cdb","_from":".","_npmVersion":"3.10.10","_nodeVersion":"7.10.0","_npmUser":{"name":"vagusx","email":"onlylae@sina.com"},"dist":{"shasum":"3049f4f97a23a035768c37d18b242182b3339cdb","size":7334,"noattachment":false,"key":"/koa-proxies/-/koa-proxies-0.4.0.tgz","tarball":"http://name.csiicloud.com:7001/koa-proxies/download/koa-proxies-0.4.0.tgz"},"maintainers":[{"name":"vagusx","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/koa-proxies-0.4.0.tgz_1499223126196_0.8696816770825535"},"directories":{},"publish_time":1499223127245,"_hasShrinkwrap":false,"deprecated":"Please upgrade this package to 0.6+","_cnpm_publish_time":1499223127245,"_cnpmcore_publish_time":"2021-12-14T03:53:51.349Z"},"0.3.0":{"name":"koa-proxies","description":"Http Proxy Middleware for Koa@2.x/next","keywords":["koa","middleware","proxy","proxies"],"main":"index.js","scripts":{"semantic-release":"semantic-release pre && npm publish && semantic-release post"},"repository":{"type":"git","url":"git+https://github.com/vagusX/koa-proxies.git"},"config":{"ghooks":{"commit-msg":"node ./node_modules/.bin/validate-commit-msg"}},"author":{"name":"vagusX"},"license":"MIT","bugs":{"url":"https://github.com/vagusX/koa-proxies/issues"},"homepage":"https://github.com/vagusX/koa-proxies#readme","devDependencies":{"ghooks":"^1.3.2","koa":"^2.0.0-alpha.7","koa-connect-history-api-fallback":"^0.3.1","koa-static":"^3.0.0","mocha":"^3.2.0","semantic-release":"^6.3.2","supertest":"^2.0.1","validate-commit-message":"^3.0.1"},"dependencies":{"http-proxy":"^1.16.2"},"version":"0.3.0","gitHead":"48bb718cde470fd5b55ef75c9d36d65cd5b5c5d5","_id":"koa-proxies@0.3.0","_shasum":"2a0c4a1a6d1d64513a635e679b19d258e4613490","_from":".","_npmVersion":"3.10.10","_nodeVersion":"7.3.0","_npmUser":{"name":"vagusx","email":"onlylae@sina.com"},"dist":{"shasum":"2a0c4a1a6d1d64513a635e679b19d258e4613490","size":2669,"noattachment":false,"key":"/koa-proxies/-/koa-proxies-0.3.0.tgz","tarball":"http://name.csiicloud.com:7001/koa-proxies/download/koa-proxies-0.3.0.tgz"},"maintainers":[{"name":"vagusx","email":""}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/koa-proxies-0.3.0.tgz_1482759751862_0.12076974776573479"},"directories":{},"publish_time":1482759752518,"_hasShrinkwrap":false,"deprecated":"Please upgrade this package to 0.6+","_cnpm_publish_time":1482759752518,"_cnpmcore_publish_time":"2021-12-14T03:53:51.561Z"},"0.2.0":{"name":"koa-proxies","description":"Http Proxy Middleware for Koa@2.x/next","main":"dist/koa-proxies.js","jsnext:main":"dist/koa-proxies.es2015.js","scripts":{"build":"rimraf dist/** && NODE_ENV=production node rollup.config.js","build:dev":"node rollup.config.js","dev":"npm run build:dev && npm run watch","semantic-release":"semantic-release pre && npm publish && semantic-release post","watch":"onchange lib -- npm run dev"},"repository":{"type":"git","url":"git+https://github.com/vagusX/koa-proxies.git"},"config":{"ghooks":{"commit-msg":"node ./node_modules/.bin/validate-commit-msg"}},"author":{"name":"vagusX"},"license":"MIT","bugs":{"url":"https://github.com/vagusX/koa-proxies/issues"},"homepage":"https://github.com/vagusX/koa-proxies#readme","devDependencies":{"ghooks":"^1.3.2","onchange":"^3.0.2","rimraf":"^2.5.4","rollup":"^0.36.0","rollup-plugin-buble":"^0.14.0","rollup-plugin-eslint":"^3.0.0","rollup-plugin-node-globals":"^1.0.8","semantic-release":"^6.3.2","standard":"^8.1.0","tape":"^4.6.0","validate-commit-message":"^3.0.1"},"dependencies":{"http-proxy":"^1.16.2"},"version":"0.2.0","gitHead":"f3fe4894808c043aa7ba6733f10385660c869a82","_id":"koa-proxies@0.2.0","_shasum":"24838fa09e80e6384ca4e46b516893facc00e8cc","_from":".","_npmVersion":"3.10.10","_nodeVersion":"7.2.1","_npmUser":{"name":"vagusx","email":"onlylae@sina.com"},"dist":{"shasum":"24838fa09e80e6384ca4e46b516893facc00e8cc","size":2562,"noattachment":false,"key":"/koa-proxies/-/koa-proxies-0.2.0.tgz","tarball":"http://name.csiicloud.com:7001/koa-proxies/download/koa-proxies-0.2.0.tgz"},"maintainers":[{"name":"vagusx","email":""}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/koa-proxies-0.2.0.tgz_1482216341503_0.6635990282520652"},"directories":{},"publish_time":1482216342142,"_hasShrinkwrap":false,"deprecated":"Please upgrade this package to 0.6+","_cnpm_publish_time":1482216342142,"_cnpmcore_publish_time":"2021-12-14T03:53:51.767Z"},"0.1.0":{"name":"koa-proxies","description":"Http Proxy Middleware for Koa@2.x/next","main":"dist/koa-proxies.js","jsnext:main":"dist/koa-proxies.es2015.js","scripts":{"build":"rimraf dist/** && NODE_ENV=production node rollup.config.js","build:dev":"node rollup.config.js","dev":"npm run build:dev && npm run watch","semantic-release":"semantic-release pre && npm publish && semantic-release post","watch":"onchange lib -- npm run dev"},"repository":{"type":"git","url":"git+https://github.com/vagusX/koa-proxies.git"},"config":{"ghooks":{"commit-msg":"node ./node_modules/.bin/validate-commit-msg"}},"author":{"name":"vagusX"},"license":"MIT","bugs":{"url":"https://github.com/vagusX/koa-proxies/issues"},"homepage":"https://github.com/vagusX/koa-proxies#readme","devDependencies":{"ghooks":"^1.3.2","onchange":"^3.0.2","rimraf":"^2.5.4","rollup":"^0.36.0","rollup-plugin-buble":"^0.14.0","rollup-plugin-eslint":"^3.0.0","rollup-plugin-node-globals":"^1.0.8","semantic-release":"^6.3.2","standard":"^8.1.0","tape":"^4.6.0","validate-commit-message":"^3.0.1"},"dependencies":{"http-proxy":"^1.16.2"},"version":"0.1.0","gitHead":"f8fac2abae315f7e843a19383e96232d01dbae63","_id":"koa-proxies@0.1.0","_shasum":"2ca89d34b41175530c77e108ca7155bb94fb0b56","_from":".","_npmVersion":"3.10.10","_nodeVersion":"7.2.1","_npmUser":{"name":"vagusx","email":"onlylae@sina.com"},"dist":{"shasum":"2ca89d34b41175530c77e108ca7155bb94fb0b56","size":2557,"noattachment":false,"key":"/koa-proxies/-/koa-proxies-0.1.0.tgz","tarball":"http://name.csiicloud.com:7001/koa-proxies/download/koa-proxies-0.1.0.tgz"},"maintainers":[{"name":"vagusx","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/koa-proxies-0.1.0.tgz_1482215840229_0.8996238589752465"},"directories":{},"publish_time":1482215842316,"_hasShrinkwrap":false,"deprecated":"Please upgrade this package to 0.6+","_cnpm_publish_time":1482215842316,"_cnpmcore_publish_time":"2021-12-14T03:53:52.013Z"}},"readme":"# Koa Proxies\n\n![NPM](https://img.shields.io/npm/v/koa-proxies.svg)\n\n[![Node.js CI](https://github.com/vagusX/koa-proxies/actions/workflows/node.js.yml/badge.svg)](https://github.com/vagusX/koa-proxies/actions/workflows/node.js.yml)\n[![Coverage](https://img.shields.io/codecov/c/github/vagusX/koa-proxies.svg)](https://codecov.io/gh/vagusX/koa-proxies)\n[![NPM Downloads](https://img.shields.io/npm/dm/koa-proxies.svg)](https://www.npmjs.com/package/koa-proxies)\n[![Greenkeeper badge](https://badges.greenkeeper.io/vagusX/koa-proxies.svg)](https://greenkeeper.io/)\n\n> [Koa@2.x/next](https://github.com/koajs/koa) middlware for http proxy\n\nPowered by [`http-proxy`](https://github.com/nodejitsu/node-http-proxy).\n\n## Installation\n\n```bash\n$ npm install koa-proxies --save\n```\n\n## Options\n\n### http-proxy events\n\n```js\noptions.events = {\n  error (err, req, res) { },\n  proxyReq (proxyReq, req, res) { },\n  proxyRes (proxyRes, req, res) { }\n}\n```\n\n### log option\n```js\n// enable log\noptions.logs = true; // or false\n\n// custom log function\noptions.logs = (ctx, target) {\n  console.log('%s - %s %s proxy to -> %s', new Date().toISOString(), ctx.req.method, ctx.req.oldPath, new URL(ctx.req.url, target))\n}\n```\n\n## Usage\n\n```js\n// dependencies\nconst Koa = require('koa')\nconst proxy = require('koa-proxies')\nconst httpsProxyAgent = require('https-proxy-agent')\n\nconst app = new Koa()\n\n// middleware\napp.use(proxy('/octocat', {\n  target: 'https://api.github.com/users/',\n  changeOrigin: true,\n  agent: new httpsProxyAgent('http://1.2.3.4:88'), // if you need or just delete this line\n  rewrite: path => path.replace(/^\\/octocat(\\/|\\/\\w+)?$/, '/vagusx'),\n  logs: true\n}))\n```\nThe 2nd parameter `options` can be a function. It will be called with the path matching result (see [path-match](https://www.npmjs.com/package/path-match) for details) and Koa `ctx` object. You can leverage this feature to dynamically set proxy. Here is an example:\n\n```js\n// dependencies\nconst Koa = require('koa')\nconst proxy = require('koa-proxies')\n\nconst app = new Koa()\n\n// middleware\napp.use(proxy('/octocat/:name', (params, ctx) => {\n  return {\n    target: 'https://api.github.com/',\n    changeOrigin: true,\n    rewrite: () => `/users/${params.name}`,\n    logs: true\n  }})\n)\n```\nMoreover, if the `options` function return `false`, then the proxy will be bypassed. This allows the middleware to bail out even if path matching succeeds, which could be helpful if you need complex logic to determine whether to proxy or not.\n\n\n### Attention\n\nPlease make sure that `koa-proxies` is in front of `koa-bodyparser` to avoid this [issue 55](https://github.com/vagusX/koa-proxies/issues/55)\n\n```js\nconst Koa = require('koa')\nconst app = new Koa()\nconst proxy = require('koa-proxies')\nconst bodyParser = require('koa-bodyparser')\n\napp.use(proxy('/user', {\n  target: 'http://example.com',\n  changeOrigin: true\n}))\n\napp.use(bodyParser())\n```\n\n[![JavaScript Style Guide](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard)\n","_attachments":{},"homepage":"https://github.com/vagusX/koa-proxies#readme","bugs":{"url":"https://github.com/vagusX/koa-proxies/issues"},"license":"MIT"}