{"_id":"koa-proxy","_rev":"1213712","name":"koa-proxy","description":"Proxy middleware for koa","dist-tags":{"latest":"1.0.0-alpha.3"},"maintainers":[{"name":"edorivai","email":"edo.rivai@gmail.com"}],"time":{"modified":"2021-10-13T05:46:54.000Z","created":"2014-03-26T05:39:45.126Z","1.0.0-alpha.3":"2019-07-23T09:57:34.472Z","1.0.0-alpha.2":"2019-06-06T12:14:25.426Z","1.0.0-alpha.1":"2019-06-06T12:10:26.550Z","1.0.0-alpha.0":"2019-04-29T11:40:43.215Z","0.9.0":"2017-09-04T04:18:36.022Z","0.8.0":"2017-02-02T17:07:27.977Z","0.7.0":"2016-12-27T10:05:15.880Z","0.6.0":"2016-04-27T16:12:57.907Z","0.5.0":"2016-02-24T11:45:16.142Z","0.4.1":"2015-10-09T11:27:28.025Z","0.4.0":"2015-09-09T11:16:09.401Z","0.3.0":"2015-07-03T03:16:37.984Z","0.2.0":"2014-10-28T04:24:58.325Z","0.1.3":"2014-08-20T06:33:19.595Z","0.1.2":"2014-08-01T07:36:35.397Z","0.1.1":"2014-03-26T08:43:19.672Z","0.1.0":"2014-03-26T05:39:45.126Z"},"users":{"iori20091101":true,"brandonb927":true,"naij":true,"shakakira":true,"jessaustin":true,"mazzarelli":true},"author":{"name":"edorivai","email":"edo.rivai@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/edorivai/koa-proxy.git"},"versions":{"1.0.0-alpha.3":{"name":"koa-proxy","version":"1.0.0-alpha.3","description":"Proxy middleware for koa","main":"index","dependencies":{"pause-stream":"0.0.11","request":"^2.88.0","request-promise-native":"^1.0.5"},"keywords":["koa","middleware","proxy"],"devDependencies":{"koa":"^2.3.0","koa-body":"^2.5.0","koa-convert":"^1.2.0","koa-router":"^7.2.1","koa-static":"^5.0.0","mocha":"^4.0.1","should":"^13.1.2","supertest":"^3.0.0"},"peerDependencies":{"koa":"2.x"},"repository":{"type":"git","url":"git+https://github.com/edorivai/koa-proxy.git"},"homepage":"https://github.com/edorivai/koa-proxy","author":{"name":"edorivai","email":"edo.rivai@gmail.com"},"license":"MIT","scripts":{"test":"mocha -t 20000"},"gitHead":"95fb8d5e5526700a2f02338e594d392bea9483d3","bugs":{"url":"https://github.com/edorivai/koa-proxy/issues"},"_id":"koa-proxy@1.0.0-alpha.3","_nodeVersion":"10.16.0","_npmVersion":"6.10.1","dist":{"shasum":"afc61edc9dc6a195464664beccc162cfe994bf55","size":3341,"noattachment":false,"key":"/koa-proxy/-/koa-proxy-1.0.0-alpha.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/koa-proxy/download/koa-proxy-1.0.0-alpha.3.tgz"},"maintainers":[{"name":"edorivai","email":"edo.rivai@gmail.com"}],"_npmUser":{"name":"edorivai","email":"edo.rivai@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/koa-proxy_1.0.0-alpha.3_1563875854243_0.6913323106848377"},"_hasShrinkwrap":false,"publish_time":1563875854472,"_cnpm_publish_time":1563875854472},"1.0.0-alpha.2":{"name":"koa-proxy","version":"1.0.0-alpha.2","description":"Proxy middleware for koa","main":"index","dependencies":{"pause-stream":"0.0.11","request":"^2.88.0","request-promise-native":"^1.0.5"},"keywords":["koa","middleware","proxy"],"devDependencies":{"koa":"^2.3.0","koa-body":"^2.5.0","koa-convert":"^1.2.0","koa-router":"^7.2.1","koa-static":"^5.0.0","mocha":"^4.0.1","should":"^13.1.2","supertest":"^3.0.0"},"peerDependencies":{"koa":"2.x"},"repository":{"type":"git","url":"git+https://github.com/edorivai/koa-proxy.git"},"homepage":"https://github.com/edorivai/koa-proxy","author":{"name":"edorivai","email":"edo.rivai@gmail.com"},"license":"MIT","scripts":{"test":"mocha -t 20000"},"gitHead":"a5f6f6fd6d6c35a6495fee0f6b19ba1e8c189575","bugs":{"url":"https://github.com/edorivai/koa-proxy/issues"},"_id":"koa-proxy@1.0.0-alpha.2","_nodeVersion":"10.10.0","_npmVersion":"6.9.0","dist":{"shasum":"368781d528165c535eed075cde14909cb1d71a5c","size":4246,"noattachment":false,"key":"/koa-proxy/-/koa-proxy-1.0.0-alpha.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/koa-proxy/download/koa-proxy-1.0.0-alpha.2.tgz"},"maintainers":[{"name":"edorivai","email":"edo.rivai@gmail.com"}],"_npmUser":{"name":"edorivai","email":"edo.rivai@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/koa-proxy_1.0.0-alpha.2_1559823265312_0.6228723728891812"},"_hasShrinkwrap":false,"publish_time":1559823265426,"_cnpm_publish_time":1559823265426},"1.0.0-alpha.1":{"name":"koa-proxy","version":"1.0.0-alpha.1","description":"Proxy middleware for koa","main":"index","dependencies":{"pause-stream":"0.0.11","request":"^2.88.0","request-promise-native":"^1.0.5"},"keywords":["koa","middleware","proxy"],"devDependencies":{"koa":"^2.3.0","koa-body":"^2.5.0","koa-convert":"^1.2.0","koa-router":"^7.2.1","koa-static":"^5.0.0","mocha":"^4.0.1","should":"^13.1.2","supertest":"^3.0.0"},"peerDependencies":{"koa":"2.x"},"repository":{"type":"git","url":"git+https://github.com/edorivai/koa-proxy.git"},"homepage":"https://github.com/edorivai/koa-proxy","author":{"name":"edorivai","email":"edo.rivai@gmail.com"},"license":"MIT","scripts":{"test":"mocha -t 20000"},"gitHead":"0576a11d76e783b43368fa3062f8cd54b1245397","bugs":{"url":"https://github.com/edorivai/koa-proxy/issues"},"_id":"koa-proxy@1.0.0-alpha.1","_nodeVersion":"10.10.0","_npmVersion":"6.9.0","dist":{"shasum":"b36029daf837da4efebff981d040119ae9a6b528","size":4154,"noattachment":false,"key":"/koa-proxy/-/koa-proxy-1.0.0-alpha.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/koa-proxy/download/koa-proxy-1.0.0-alpha.1.tgz"},"maintainers":[{"name":"edorivai","email":"edo.rivai@gmail.com"}],"_npmUser":{"name":"edorivai","email":"edo.rivai@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/koa-proxy_1.0.0-alpha.1_1559823026388_0.6755013989661014"},"_hasShrinkwrap":false,"publish_time":1559823026550,"_cnpm_publish_time":1559823026550},"1.0.0-alpha.0":{"name":"koa-proxy","version":"1.0.0-alpha.0","description":"Proxy middleware for koa","main":"index","dependencies":{"pause-stream":"0.0.11","request":"^2.88.0","request-promise-native":"^1.0.5"},"keywords":["koa","middleware","proxy"],"devDependencies":{"koa":"^2.3.0","koa-body":"^2.5.0","koa-convert":"^1.2.0","koa-router":"^7.2.1","koa-static":"^5.0.0","mocha":"^4.0.1","should":"^13.1.2","supertest":"^3.0.0"},"peerDependencies":{"koa":">2"},"repository":{"type":"git","url":"git+https://github.com/edorivai/koa-proxy.git"},"homepage":"https://github.com/edorivai/koa-proxy","author":{"name":"edorivai","email":"edo.rivai@gmail.com"},"license":"MIT","scripts":{"test":"mocha -t 20000"},"gitHead":"213ebc17a1e7cbfe7de42441039b926efd8d787d","bugs":{"url":"https://github.com/edorivai/koa-proxy/issues"},"_id":"koa-proxy@1.0.0-alpha.0","_npmVersion":"6.4.1","_nodeVersion":"10.10.0","_npmUser":{"name":"edorivai","email":"edo.rivai@gmail.com"},"dist":{"shasum":"b69e3b6c2b3a1d0591a2244bbd410cd043449a86","size":3237,"noattachment":false,"key":"/koa-proxy/-/koa-proxy-1.0.0-alpha.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/koa-proxy/download/koa-proxy-1.0.0-alpha.0.tgz"},"maintainers":[{"name":"edorivai","email":"edo.rivai@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/koa-proxy_1.0.0-alpha.0_1556538043125_0.3262052563744031"},"_hasShrinkwrap":false,"publish_time":1556538043215,"_cnpm_publish_time":1556538043215},"0.9.0":{"name":"koa-proxy","version":"0.9.0","description":"Proxy middleware for koa","main":"index","dependencies":{"iconv-lite":"^0.2.11","co-request":"^0.2.0"},"keywords":["koa","middleware","proxy"],"devDependencies":{"coveralls":"~2.8.0","istanbul-harmony":"*","koa":"^0.5.2","koa-body-parser":"^1.1.2","koa-router":"^3.1.2","koa-static":"^1.4.3","mocha":"~1.17.1","should":"~3.1.3","supertest":"^0.10.0"},"repository":{"type":"git","url":"git+https://github.com/popomore/koa-proxy.git"},"homepage":"https://github.com/popomore/koa-proxy","author":{"name":"popomore","email":"sakura9515@gmail.com"},"license":"MIT","scripts":{"test":"make test"},"gitHead":"9934a7f55c33a018fd894d2ed87ad024f3c6066c","bugs":{"url":"https://github.com/popomore/koa-proxy/issues"},"_id":"koa-proxy@0.9.0","_npmVersion":"5.3.0","_nodeVersion":"8.2.1","_npmUser":{"name":"popomore","email":"sakura9515@gmail.com"},"dist":{"shasum":"4fd13b0f2eea9be097445bf7b7b4398856a22ef6","size":3347,"noattachment":false,"key":"/koa-proxy/-/koa-proxy-0.9.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/koa-proxy/download/koa-proxy-0.9.0.tgz"},"maintainers":[{"name":"edorivai","email":"edo.rivai@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/koa-proxy-0.9.0.tgz_1504498715673_0.3173548218328506"},"directories":{},"publish_time":1504498716022,"_hasShrinkwrap":false,"_cnpm_publish_time":1504498716022},"0.8.0":{"name":"koa-proxy","version":"0.8.0","description":"Proxy middleware for koa","main":"index","dependencies":{"iconv-lite":"^0.2.11","co-request":"^0.2.0"},"keywords":["koa","middleware","proxy"],"devDependencies":{"coveralls":"~2.8.0","istanbul-harmony":"*","koa":"^0.5.2","koa-body-parser":"^1.1.2","koa-router":"^3.1.2","koa-static":"^1.4.3","mocha":"~1.17.1","should":"~3.1.3","supertest":"^0.10.0"},"repository":{"type":"git","url":"git+https://github.com/popomore/koa-proxy.git"},"homepage":"https://github.com/popomore/koa-proxy","author":{"name":"popomore","email":"sakura9515@gmail.com"},"license":"MIT","scripts":{"test":"make test"},"gitHead":"c2483f54c8c2c6437924dcc182c2a30f92a9a18d","bugs":{"url":"https://github.com/popomore/koa-proxy/issues"},"_id":"koa-proxy@0.8.0","_shasum":"c8e832d27d5ea866ce176252584341853cc37b10","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"popomore","email":"sakura9515@gmail.com"},"dist":{"shasum":"c8e832d27d5ea866ce176252584341853cc37b10","size":18973,"noattachment":false,"key":"/koa-proxy/-/koa-proxy-0.8.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/koa-proxy/download/koa-proxy-0.8.0.tgz"},"maintainers":[{"name":"edorivai","email":"edo.rivai@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/koa-proxy-0.8.0.tgz_1486055247742_0.4151684476528317"},"directories":{},"publish_time":1486055247977,"_cnpm_publish_time":1486055247977,"_hasShrinkwrap":false},"0.7.0":{"name":"koa-proxy","version":"0.7.0","description":"Proxy middleware for koa","main":"index","dependencies":{"iconv-lite":"^0.2.11","co-request":"^0.2.0"},"keywords":["koa","middleware","proxy"],"devDependencies":{"coveralls":"~2.8.0","istanbul-harmony":"*","koa":"^0.5.2","koa-body-parser":"^1.1.2","koa-router":"^3.1.2","koa-static":"^1.4.3","mocha":"~1.17.1","should":"~3.1.3","supertest":"^0.10.0"},"repository":{"type":"git","url":"git+https://github.com/popomore/koa-proxy.git"},"homepage":"https://github.com/popomore/koa-proxy","author":{"name":"popomore","email":"sakura9515@gmail.com"},"license":"MIT","scripts":{"test":"make test"},"gitHead":"848f3ef813681cd358a3e574c09a505d6baee3b4","bugs":{"url":"https://github.com/popomore/koa-proxy/issues"},"_id":"koa-proxy@0.7.0","_shasum":"e3e6eecfd26ffe4172a17ea6a0ab9ebfb5e25ab6","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"popomore","email":"sakura9515@gmail.com"},"dist":{"shasum":"e3e6eecfd26ffe4172a17ea6a0ab9ebfb5e25ab6","size":2963,"noattachment":false,"key":"/koa-proxy/-/koa-proxy-0.7.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/koa-proxy/download/koa-proxy-0.7.0.tgz"},"maintainers":[{"name":"edorivai","email":"edo.rivai@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/koa-proxy-0.7.0.tgz_1482833115659_0.7505395943298936"},"directories":{},"publish_time":1482833115880,"_cnpm_publish_time":1482833115880,"_hasShrinkwrap":false},"0.6.0":{"name":"koa-proxy","version":"0.6.0","description":"Proxy middleware for koa","main":"index","dependencies":{"iconv-lite":"^0.2.11","co-request":"^0.2.0"},"keywords":["koa","middleware","proxy"],"devDependencies":{"coveralls":"~2.8.0","istanbul-harmony":"*","koa":"^0.5.2","koa-body-parser":"^1.1.2","koa-router":"^3.1.2","koa-static":"^1.4.3","mocha":"~1.17.1","should":"~3.1.3","supertest":"^0.10.0"},"repository":{"type":"git","url":"git+https://github.com/popomore/koa-proxy.git"},"homepage":"https://github.com/popomore/koa-proxy","author":{"name":"popomore","email":"sakura9515@gmail.com"},"license":"MIT","scripts":{"test":"make test"},"gitHead":"3dc98e4b3d3aecf4ec645fca52c1bbf46e1629a0","bugs":{"url":"https://github.com/popomore/koa-proxy/issues"},"_id":"koa-proxy@0.6.0","_shasum":"99f1860ff65fe167a865a5649d57a7dd3ad5cab0","_from":".","_npmVersion":"2.14.20","_nodeVersion":"4.4.0","_npmUser":{"name":"popomore","email":"sakura9515@gmail.com"},"maintainers":[{"name":"edorivai","email":"edo.rivai@gmail.com"}],"dist":{"shasum":"99f1860ff65fe167a865a5649d57a7dd3ad5cab0","size":18482,"noattachment":false,"key":"/koa-proxy/-/koa-proxy-0.6.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/koa-proxy/download/koa-proxy-0.6.0.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/koa-proxy-0.6.0.tgz_1461773575531_0.8466288375202566"},"directories":{},"publish_time":1461773577907,"_cnpm_publish_time":1461773577907,"_hasShrinkwrap":false},"0.5.0":{"name":"koa-proxy","version":"0.5.0","description":"Proxy middleware for koa","main":"index","dependencies":{"iconv-lite":"^0.2.11","co-request":"^0.2.0"},"keywords":["koa","middleware","proxy"],"devDependencies":{"coveralls":"~2.8.0","istanbul-harmony":"*","koa":"^0.5.2","koa-body-parser":"^1.1.2","koa-router":"^3.1.2","koa-static":"^1.4.3","mocha":"~1.17.1","should":"~3.1.3","supertest":"^0.10.0"},"repository":{"type":"git","url":"git+https://github.com/popomore/koa-proxy.git"},"homepage":"https://github.com/popomore/koa-proxy","author":{"name":"popomore","email":"sakura9515@gmail.com"},"license":"MIT","scripts":{"test":"make test"},"gitHead":"823c67557844fd458d798af604392b50422ffe82","bugs":{"url":"https://github.com/popomore/koa-proxy/issues"},"_id":"koa-proxy@0.5.0","_shasum":"aedf8c3f6c26190298d8c97fd27172909558c340","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.3.1","_npmUser":{"name":"popomore","email":"sakura9515@gmail.com"},"maintainers":[{"name":"edorivai","email":"edo.rivai@gmail.com"}],"dist":{"shasum":"aedf8c3f6c26190298d8c97fd27172909558c340","size":18415,"noattachment":false,"key":"/koa-proxy/-/koa-proxy-0.5.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/koa-proxy/download/koa-proxy-0.5.0.tgz"},"_npmOperationalInternal":{"host":"packages-6-west.internal.npmjs.com","tmp":"tmp/koa-proxy-0.5.0.tgz_1456314315483_0.40817870176397264"},"directories":{},"publish_time":1456314316142,"_cnpm_publish_time":1456314316142,"_hasShrinkwrap":false},"0.4.1":{"name":"koa-proxy","version":"0.4.1","description":"Proxy middleware for koa","main":"index","dependencies":{"iconv-lite":"^0.2.11","co-request":"^0.2.0"},"keywords":["koa","middleware","proxy"],"devDependencies":{"coveralls":"~2.8.0","istanbul-harmony":"*","koa":"^0.5.2","koa-body-parser":"^1.1.0","koa-router":"^3.1.2","koa-static":"^1.4.3","mocha":"~1.17.1","should":"~3.1.3","supertest":"^0.10.0"},"repository":{"type":"git","url":"git+https://github.com/popomore/koa-proxy.git"},"homepage":"https://github.com/popomore/koa-proxy","author":{"name":"popomore","email":"sakura9515@gmail.com"},"license":"MIT","scripts":{"test":"make test"},"gitHead":"da449f7b1d746d7443908b9a43eb4bf447467f5c","bugs":{"url":"https://github.com/popomore/koa-proxy/issues"},"_id":"koa-proxy@0.4.1","_shasum":"6e35a41aae51c633fd7e654cce45daeec572a7b3","_from":".","_npmVersion":"2.14.3","_nodeVersion":"3.3.1","_npmUser":{"name":"popomore","email":"sakura9515@gmail.com"},"maintainers":[{"name":"edorivai","email":"edo.rivai@gmail.com"}],"dist":{"shasum":"6e35a41aae51c633fd7e654cce45daeec572a7b3","size":15493,"noattachment":false,"key":"/koa-proxy/-/koa-proxy-0.4.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/koa-proxy/download/koa-proxy-0.4.1.tgz"},"directories":{},"publish_time":1444390048025,"_cnpm_publish_time":1444390048025,"_hasShrinkwrap":false},"0.4.0":{"name":"koa-proxy","version":"0.4.0","description":"Proxy middleware for koa","main":"index","dependencies":{"iconv-lite":"^0.2.11","co-request":"^0.2.0"},"keywords":["koa","middleware","proxy"],"devDependencies":{"coveralls":"~2.8.0","istanbul-harmony":"*","koa":"^0.5.2","koa-body-parser":"^1.1.0","koa-router":"^3.1.2","koa-static":"^1.4.3","mocha":"~1.17.1","should":"~3.1.3","supertest":"^0.10.0"},"repository":{"type":"git","url":"git+https://github.com/popomore/koa-proxy.git"},"homepage":"https://github.com/popomore/koa-proxy","author":{"name":"popomore","email":"sakura9515@gmail.com"},"license":"MIT","scripts":{"test":"make test"},"gitHead":"0a2d8d206a0a6091c7ec5698cfeafd20600320bc","bugs":{"url":"https://github.com/popomore/koa-proxy/issues"},"_id":"koa-proxy@0.4.0","_shasum":"2c7d6e6e6a80076a077031411dc12a602dfcd2d8","_from":".","_npmVersion":"2.11.3","_nodeVersion":"2.3.2","_npmUser":{"name":"popomore","email":"sakura9515@gmail.com"},"maintainers":[{"name":"edorivai","email":"edo.rivai@gmail.com"}],"dist":{"shasum":"2c7d6e6e6a80076a077031411dc12a602dfcd2d8","size":15416,"noattachment":false,"key":"/koa-proxy/-/koa-proxy-0.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/koa-proxy/download/koa-proxy-0.4.0.tgz"},"directories":{},"publish_time":1441797369401,"_cnpm_publish_time":1441797369401,"_hasShrinkwrap":false},"0.3.0":{"name":"koa-proxy","version":"0.3.0","description":"Proxy middleware for koa","main":"index","dependencies":{"iconv-lite":"^0.2.11","co-request":"^0.2.0"},"keywords":["koa","middleware","proxy"],"devDependencies":{"coveralls":"~2.8.0","istanbul-harmony":"*","koa":"^0.5.2","koa-body-parser":"^1.1.0","koa-router":"^3.1.2","koa-static":"^1.4.3","mocha":"~1.17.1","should":"~3.1.3","supertest":"^0.10.0"},"repository":{"type":"git","url":"git+https://github.com/popomore/koa-proxy.git"},"homepage":"https://github.com/popomore/koa-proxy","author":{"name":"popomore","email":"sakura9515@gmail.com"},"license":"MIT","scripts":{"test":"make test"},"gitHead":"9d9f76a20beafa0be348f33d1cccd6a4d06bc51a","bugs":{"url":"https://github.com/popomore/koa-proxy/issues"},"_id":"koa-proxy@0.3.0","_shasum":"72349c15e57cf24de5666122cc91ed6adc2fc886","_from":".","_npmVersion":"2.9.0","_nodeVersion":"2.0.2","_npmUser":{"name":"popomore","email":"sakura9515@gmail.com"},"maintainers":[{"name":"edorivai","email":"edo.rivai@gmail.com"}],"dist":{"shasum":"72349c15e57cf24de5666122cc91ed6adc2fc886","size":15285,"noattachment":false,"key":"/koa-proxy/-/koa-proxy-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/koa-proxy/download/koa-proxy-0.3.0.tgz"},"directories":{},"publish_time":1435893397984,"_cnpm_publish_time":1435893397984,"_hasShrinkwrap":false},"0.2.0":{"name":"koa-proxy","version":"0.2.0","description":"Proxy middleware for koa","main":"index","dependencies":{"iconv-lite":"^0.2.11","co-request":"^0.2.0"},"keywords":["koa","middleware","proxy"],"devDependencies":{"coveralls":"~2.8.0","istanbul-harmony":"*","koa":"^0.5.2","koa-body-parser":"^1.1.0","koa-router":"^3.1.2","koa-static":"^1.4.3","mocha":"~1.17.1","should":"~3.1.3","supertest":"^0.10.0"},"repository":{"type":"git","url":"https://github.com/popomore/koa-proxy"},"homepage":"https://github.com/popomore/koa-proxy","author":{"name":"popomore","email":"sakura9515@gmail.com"},"license":"MIT","scripts":{"test":"make test"},"bugs":{"url":"https://github.com/popomore/koa-proxy/issues"},"_id":"koa-proxy@0.2.0","dist":{"shasum":"fc4def4709a87e6806f80ea5576a3591f330ccb4","size":15032,"noattachment":false,"key":"/koa-proxy/-/koa-proxy-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/koa-proxy/download/koa-proxy-0.2.0.tgz"},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"popomore","email":"sakura9515@gmail.com"},"maintainers":[{"name":"edorivai","email":"edo.rivai@gmail.com"}],"directories":{},"publish_time":1414470298325,"_cnpm_publish_time":1414470298325,"_hasShrinkwrap":false},"0.1.3":{"name":"koa-proxy","version":"0.1.3","description":"Proxy middleware for koa","main":"index","dependencies":{"iconv-lite":"^0.2.11","co-request":"^0.2.0"},"keywords":["koa","middleware","proxy"],"devDependencies":{"coveralls":"~2.8.0","istanbul-harmony":"*","koa":"^0.5.2","koa-router":"^3.1.2","koa-static":"^1.4.3","mocha":"~1.17.1","should":"~3.1.3","supertest":"^0.10.0"},"repository":{"type":"git","url":"https://github.com/popomore/koa-proxy"},"homepage":"https://github.com/popomore/koa-proxy","author":{"name":"popomore","email":"sakura9515@gmail.com"},"license":"MIT","scripts":{"test":"make test"},"bugs":{"url":"https://github.com/popomore/koa-proxy/issues"},"_id":"koa-proxy@0.1.3","dist":{"shasum":"6a554682736088726469edc1d8895a81c42d45e4","size":14722,"noattachment":false,"key":"/koa-proxy/-/koa-proxy-0.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/koa-proxy/download/koa-proxy-0.1.3.tgz"},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"popomore","email":"sakura9515@gmail.com"},"maintainers":[{"name":"edorivai","email":"edo.rivai@gmail.com"}],"directories":{},"publish_time":1408516399595,"_cnpm_publish_time":1408516399595,"_hasShrinkwrap":false},"0.1.2":{"name":"koa-proxy","version":"0.1.2","description":"Proxy middleware for koa","main":"index","dependencies":{"iconv-lite":"^0.2.11","koa-request":"^1.0.0"},"keywords":["koa","middleware","proxy"],"devDependencies":{"coveralls":"~2.8.0","istanbul-harmony":"*","koa":"^0.5.2","koa-router":"^3.1.2","koa-static":"^1.4.3","mocha":"~1.17.1","should":"~3.1.3","supertest":"^0.10.0"},"repository":{"type":"git","url":"https://github.com/popomore/koa-proxy"},"homepage":"https://github.com/popomore/koa-proxy","author":{"name":"popomore","email":"sakura9515@gmail.com"},"license":"MIT","scripts":{"test":"make test"},"bugs":{"url":"https://github.com/popomore/koa-proxy/issues"},"_id":"koa-proxy@0.1.2","dist":{"shasum":"ad9f3358858db8dbddaeb6e5ba8ea62aaa776f62","size":14641,"noattachment":false,"key":"/koa-proxy/-/koa-proxy-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/koa-proxy/download/koa-proxy-0.1.2.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"popomore","email":"sakura9515@gmail.com"},"maintainers":[{"name":"edorivai","email":"edo.rivai@gmail.com"}],"directories":{},"publish_time":1406878595397,"_cnpm_publish_time":1406878595397,"_hasShrinkwrap":false},"0.1.1":{"name":"koa-proxy","version":"0.1.1","description":"Proxy middleware for koa","main":"index","dependencies":{"iconv-lite":"^0.2.11","koa-request":"^1.0.0"},"keywords":["koa","middleware","proxy"],"devDependencies":{"coveralls":"~2.8.0","istanbul-harmony":"*","koa":"^0.5.2","koa-router":"^3.1.2","koa-static":"^1.4.3","mocha":"~1.17.1","should":"~3.1.3","supertest":"^0.10.0"},"repository":{"type":"git","url":"https://github.com/popomore/koa-proxy"},"homepage":"https://github.com/popomore/koa-proxy","author":{"name":"popomore","email":"sakura9515@gmail.com"},"license":"MIT","scripts":{"test":"make test"},"bugs":{"url":"https://github.com/popomore/koa-proxy/issues"},"_id":"koa-proxy@0.1.1","dist":{"shasum":"f9ffea934ae76e0da22e6bcaa7c17d0ce756ae45","size":14576,"noattachment":false,"key":"/koa-proxy/-/koa-proxy-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/koa-proxy/download/koa-proxy-0.1.1.tgz"},"_from":".","_npmVersion":"1.4.4","_npmUser":{"name":"popomore","email":"sakura9515@gmail.com"},"maintainers":[{"name":"edorivai","email":"edo.rivai@gmail.com"}],"directories":{},"publish_time":1395823399672,"_cnpm_publish_time":1395823399672,"_hasShrinkwrap":false},"0.1.0":{"name":"koa-proxy","version":"0.1.0","description":"Proxy middleware for koa","main":"index","dependencies":{"iconv-lite":"^0.2.11","koa-request":"^1.0.0"},"keywords":["koa","middleware","proxy"],"devDependencies":{"coveralls":"~2.8.0","istanbul-harmony":"*","koa":"^0.5.2","koa-router":"^3.1.2","koa-static":"^1.4.3","mocha":"~1.17.1","should":"~3.1.3","supertest":"^0.10.0"},"repository":{"type":"git","url":"https://github.com/popomore/koa-proxy"},"homepage":"https://github.com/popomore/koa-proxy","author":{"name":"popomore","email":"sakura9515@gmail.com"},"license":"MIT","scripts":{"test":"make test"},"bugs":{"url":"https://github.com/popomore/koa-proxy/issues"},"_id":"koa-proxy@0.1.0","dist":{"shasum":"92eba48abad6603c58429e89ccc10c008ea50a08","size":14328,"noattachment":false,"key":"/koa-proxy/-/koa-proxy-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/koa-proxy/download/koa-proxy-0.1.0.tgz"},"_from":".","_npmVersion":"1.3.22","_npmUser":{"name":"popomore","email":"sakura9515@gmail.com"},"maintainers":[{"name":"edorivai","email":"edo.rivai@gmail.com"}],"directories":{},"publish_time":1395812385126,"_cnpm_publish_time":1395812385126,"_hasShrinkwrap":false}},"readme":"# koa-proxy [![Build Status](https://travis-ci.com/edorivai/koa-proxy.svg?branch=master)](https://travis-ci.com/edorivai/koa-proxy)\n\nProxy middleware for koa\n\n---\n\n## Install\n\n```\n$ npm install koa-proxy -S\n```\n\n## Usage\n\nWhen you request http://localhost:3000/index.js, it will fetch http://alicdn.com/index.js and return.\n\n```js\nvar koa = require('koa');\nvar proxy = require('koa-proxy');\nvar app = koa();\napp.use(proxy({\n  host: 'http://alicdn.com'\n}));\napp.listen(3000);\n```\n\nYou can proxy a specified url.\n\n```js\napp.get('index.js', proxy({\n  url: 'http://alicdn.com/index.js'\n}));\n```\n\nYou can specify a key/value object that can map your request's path to the other.\n\n```js\napp.get('index.js', proxy({\n  host: 'http://alicdn.com',\n  map: {\n    'index.js': 'index-1.js'\n  }\n}));\n```\n\nYou can specify a function that can map your request's path to the desired destination.\n\n```js\napp.get('index.js', proxy({\n  host: 'http://alicdn.com',\n  map: function(path) { return 'public/' + path; }\n}));\n```\n\nYou can specify match criteria to restrict proxy calls to a given path.\n\n```js\napp.use(proxy({\n  host:  'http://alicdn.com', // proxy alicdn.com...\n  match: /^\\/static\\//        // ...just the /static folder\n}));\n```\n\nOr you can use match to exclude a specific path.\n\n```js\napp.use(proxy({\n  host:  'http://alicdn.com',     // proxy alicdn.com...\n  match: /^(?!\\/dontproxy\\.html)/ // ...everything except /dontproxy.html\n}));\n```\n\nProxy won't send cookie to real server, you can set `jar = true` to send it.\n\n```js\napp.use(proxy({\n  jar: true,\n}));\n```\n\nProxy won't send 'foo' and 'bar' headers to real server, or recieve 'jar-jar' from real server.\n\n```js\napp.use(proxy({\n  suppressRequestHeaders: ['foo','bar'], // case-insensitive\n  suppressResponseHeaders: ['jar-jar'] // case-insensitive\n}));\n```\n\nYou can also add new headers to your response or override existing ones\n```js\napp.use(proxy({\n  overrideResponseHeaders: {\n    \"cow\": \"moo\",\n    \"duck\": \"quack\"\n    }, \n}));\n```\n\n## LICENSE\n\nCopyright (c) 2014 popomore. Licensed under the MIT license.\n","_attachments":{},"homepage":"https://github.com/edorivai/koa-proxy","bugs":{"url":"https://github.com/edorivai/koa-proxy/issues"},"license":"MIT"}