{"_id":"kcors","_rev":"1213323","name":"kcors","description":"Cross-Origin Resource Sharing(CORS) for koa","dist-tags":{"latest":"2.2.2","next":"2.2.1"},"maintainers":[{"name":"fengmk2","email":"fengmk2@gmail.com"}],"time":{"modified":"2021-10-13T05:46:43.000Z","created":"2015-02-09T05:44:09.290Z","2.2.2":"2018-07-11T12:50:26.908Z","1.3.3":"2017-09-13T10:33:24.971Z","1.3.2":"2017-02-12T17:09:03.954Z","2.2.1":"2017-02-11T19:07:48.550Z","1.3.1":"2016-10-21T16:57:09.473Z","2.2.0":"2016-09-26T08:20:52.327Z","1.3.0":"2016-09-26T08:15:18.931Z","2.1.1":"2016-05-14T13:56:51.315Z","1.2.1":"2016-05-14T13:03:01.227Z","2.1.0":"2016-04-28T18:28:24.096Z","1.2.0":"2016-04-26T16:25:46.202Z","1.1.0":"2016-03-06T17:30:35.951Z","2.0.0":"2016-02-20T05:13:00.718Z","1.0.1":"2015-02-11T08:17:44.111Z","1.0.0":"2015-02-09T05:44:09.290Z"},"users":{"wouter_vdb":true,"princetoad":true,"xgheaven":true,"yl2014":true,"donggw2030521":true},"author":{"name":"fengmk2","email":"fengmk2@gmail.com","url":"http://fengmk2.com"},"repository":{"type":"git","url":"git://github.com/koajs/cors.git"},"versions":{"2.2.2":{"name":"kcors","version":"2.2.2","description":"Cross-Origin Resource Sharing(CORS) for koa","main":"index.js","files":["index.js"],"scripts":{"test":"NODE_ENV=test mocha --check-leaks -R spec -t 5000 test/*.test.js","test-cov":"NODE_ENV=test istanbul cover _mocha -- --check-leaks -t 5000 test/*.test.js","ci":"npm run lint && npm run test-cov","lint":"eslint index.js test","autod":"autod -w --prefix '^'"},"dependencies":{},"devDependencies":{"autod":"*","eslint":"^2.3.0","eslint-config-egg":"^2.0.0","istanbul":"*","koa":"^2.5.1","mocha":"3","supertest":"^3.1.0"},"homepage":"https://github.com/koajs/cors","repository":{"type":"git","url":"git://github.com/koajs/cors.git"},"bugs":{"url":"https://github.com/koajs/cors/issues"},"keywords":["cors","koa-cors","Cross-Origin Resource Sharing","@koa/cors","koa","koajs"],"engines":{"node":">= 6.0.0"},"author":{"name":"fengmk2","email":"fengmk2@gmail.com","url":"http://fengmk2.com"},"license":"MIT","gitHead":"b5a937fc24666761c61b1ac633f49f54612d1315","_id":"kcors@2.2.2","_npmVersion":"6.1.0","_nodeVersion":"10.6.0","_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"dist":{"shasum":"b6250e7a4f0a33c8f477b7fd0dfa11a3f3ca518d","size":3656,"noattachment":false,"key":"/kcors/-/kcors-2.2.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/kcors/download/kcors-2.2.2.tgz"},"maintainers":[{"name":"fengmk2","email":"fengmk2@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/kcors_2.2.2_1531313426805_0.2912532314449159"},"_hasShrinkwrap":false,"publish_time":1531313426908,"_cnpm_publish_time":1531313426908},"1.3.3":{"name":"kcors","version":"1.3.3","description":"Cross-Origin Resource Sharing(CORS) for koa","main":"index.js","files":["index.js"],"scripts":{"test":"mocha --harmony -t 5000 test/*.test.js","test-cov":"node --harmony node_modules/.bin/istanbul cover _mocha -- -t 5000 test/*.test.js","ci":"npm run lint && npm run test-cov","lint":"jshint .","autod":"autod -w --prefix '^'","contributors":"contributors -f plain -o AUTHORS"},"dependencies":{"copy-to":"^2.0.1"},"devDependencies":{"autod":"*","contributors":"*","istanbul":"*","jshint":"*","koa":"1","mocha":"*","supertest":"1"},"homepage":"https://github.com/koajs/cors","repository":{"type":"git","url":"git://github.com/koajs/cors.git"},"bugs":{"url":"https://github.com/koajs/cors/issues","email":"m@fengmk2.com"},"keywords":["cors","koa-cors","Cross-Origin Resource Sharing","kcors","koa","koajs"],"engines":{"node":">= 0.12.9"},"author":{"name":"fengmk2","email":"m@fengmk2.com","url":"http://fengmk2.com"},"license":"MIT","contributors":[{"name":"fengmk2","email":"m@fengmk2.com","url":"https://fengmk2.com"},{"name":"chinesedfan","email":"chinesedfan@qq.com","url":"https://github.com/chinesedfan"},{"name":"PlasmaPower","email":"ljbousfield@gmail.com","url":"https://github.com/PlasmaPower"},{"name":"Roman Shtylman","email":"shtylman@gmail.com","url":"https://github.com/defunctzombie"},{"name":"Adams","email":"jtyjty99999@126.com","url":"https://github.com/jtyjty99999"},{"name":"lishengzxc","email":"eric@lishengcn.cn","url":"https://github.com/lishengzxc"}],"gitHead":"6e129c855d68474dbd4994c61ec5ae2b05a106b6","_id":"kcors@1.3.3","_npmVersion":"5.3.0","_nodeVersion":"8.4.0","_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"dist":{"shasum":"afaf9e5dbef4c20c2994a7b434e4f7e07826fc65","size":3679,"noattachment":false,"key":"/kcors/-/kcors-1.3.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/kcors/download/kcors-1.3.3.tgz"},"maintainers":[{"name":"fengmk2","email":"fengmk2@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/kcors-1.3.3.tgz_1505298804875_0.9908103703055531"},"directories":{},"publish_time":1505298804971,"_hasShrinkwrap":false,"_cnpm_publish_time":1505298804971},"1.3.2":{"name":"kcors","version":"1.3.2","description":"Cross-Origin Resource Sharing(CORS) for koa","main":"index.js","files":["index.js"],"scripts":{"test":"mocha --harmony -t 5000 test/*.test.js","test-cov":"node --harmony node_modules/.bin/istanbul cover _mocha -- -t 5000 test/*.test.js","ci":"npm run lint && npm run test-cov","lint":"jshint .","autod":"autod -w --prefix '^'","contributors":"contributors -f plain -o AUTHORS"},"dependencies":{"copy-to":"^2.0.1"},"devDependencies":{"autod":"*","contributors":"*","istanbul":"*","jshint":"*","koa":"1","mocha":"*","supertest":"1"},"homepage":"https://github.com/koajs/cors","repository":{"type":"git","url":"git://github.com/koajs/cors.git"},"bugs":{"url":"https://github.com/koajs/cors/issues","email":"m@fengmk2.com"},"keywords":["cors","koa-cors","Cross-Origin Resource Sharing","kcors","koa","koajs"],"engines":{"node":">= 0.12.9"},"author":{"name":"fengmk2","email":"m@fengmk2.com","url":"http://fengmk2.com"},"license":"MIT","contributors":[{"name":"fengmk2","email":"m@fengmk2.com","url":"https://fengmk2.com"},{"name":"chinesedfan","email":"chinesedfan@qq.com","url":"https://github.com/chinesedfan"},{"name":"PlasmaPower","email":"ljbousfield@gmail.com","url":"https://github.com/PlasmaPower"},{"name":"Roman Shtylman","email":"shtylman@gmail.com","url":"https://github.com/defunctzombie"},{"name":"Adams","email":"jtyjty99999@126.com","url":"https://github.com/jtyjty99999"},{"name":"lishengzxc","email":"eric@lishengcn.cn","url":"https://github.com/lishengzxc"}],"gitHead":"5f282c51b721a2a239fd0839e0f85bcb1b4efaa3","_id":"kcors@1.3.2","_shasum":"8843ff14d86bfc2cfb5c2664e6809176b38dbd0d","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.5","_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"dist":{"shasum":"8843ff14d86bfc2cfb5c2664e6809176b38dbd0d","size":3540,"noattachment":false,"key":"/kcors/-/kcors-1.3.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/kcors/download/kcors-1.3.2.tgz"},"maintainers":[{"name":"fengmk2","email":"fengmk2@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/kcors-1.3.2.tgz_1486919343727_0.8702374580316246"},"directories":{},"publish_time":1486919343954,"_cnpm_publish_time":1486919343954,"_hasShrinkwrap":false},"2.2.1":{"name":"kcors","version":"2.2.1","description":"Cross-Origin Resource Sharing(CORS) for koa","main":"index.js","files":["index.js"],"scripts":{"test":"NODE_ENV=test mocha --check-leaks -R spec -t 5000 test/*.test.js","test-cov":"NODE_ENV=test istanbul cover _mocha -- --check-leaks -t 5000 test/*.test.js","ci":"npm run lint && npm run test-cov","lint":"eslint index.js test","autod":"autod -w --prefix '~'","contributors":"contributors -f plain -o AUTHORS"},"dependencies":{},"devDependencies":{"autod":"*","contributors":"*","istanbul":"*","koa":"next","mocha":"*","supertest":"1","eslint-config-egg":"^2.0.0","eslint":"^2.3.0"},"homepage":"https://github.com/koajs/cors","repository":{"type":"git","url":"git://github.com/koajs/cors.git"},"bugs":{"url":"https://github.com/koajs/cors/issues","email":"m@fengmk2.com"},"keywords":["cors","koa-cors","Cross-Origin Resource Sharing","kcors","koa","koajs"],"engines":{"node":">= 4.3.1"},"publishConfig":{"tag":"next"},"author":{"name":"fengmk2","email":"m@fengmk2.com","url":"http://fengmk2.com"},"license":"MIT","contributors":[{"name":"fengmk2","email":"m@fengmk2.com","url":"https://fengmk2.com"},{"name":"Owen Smith","email":"owen@omsmith.ca"},{"name":"PlasmaPower","email":"ljbousfield@gmail.com"},{"name":"Yiyu He","email":"dead_horse@qq.com","url":"https://github.com/dead-horse"},{"name":"lishengzxc","email":"eric@lishengcn.cn","url":"https://github.com/lishengzxc"}],"gitHead":"a396989cd91309beb73413cb80d344b872df079a","_id":"kcors@2.2.1","_shasum":"7160a94f2eae633436d2cef8eadd0ce232386779","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.5","_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"dist":{"shasum":"7160a94f2eae633436d2cef8eadd0ce232386779","size":3345,"noattachment":false,"key":"/kcors/-/kcors-2.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/kcors/download/kcors-2.2.1.tgz"},"maintainers":[{"name":"fengmk2","email":"fengmk2@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/kcors-2.2.1.tgz_1486840068331_0.45329279033467174"},"directories":{},"publish_time":1486840068550,"_cnpm_publish_time":1486840068550,"_hasShrinkwrap":false},"1.3.1":{"name":"kcors","version":"1.3.1","description":"Cross-Origin Resource Sharing(CORS) for koa","main":"index.js","files":["index.js"],"scripts":{"test":"mocha --harmony -t 5000 test/*.test.js","test-cov":"node --harmony node_modules/.bin/istanbul cover _mocha -- -t 5000 test/*.test.js","ci":"npm run lint && npm run test-cov","lint":"jshint .","autod":"autod -w --prefix '^'","contributors":"contributors -f plain -o AUTHORS"},"dependencies":{"copy-to":"^2.0.1"},"devDependencies":{"autod":"*","contributors":"*","istanbul":"*","jshint":"*","koa":"1","mocha":"*","supertest":"1"},"homepage":"https://github.com/koajs/cors","repository":{"type":"git","url":"git://github.com/koajs/cors.git"},"bugs":{"url":"https://github.com/koajs/cors/issues","email":"m@fengmk2.com"},"keywords":["cors","koa-cors","Cross-Origin Resource Sharing","kcors","koa","koajs"],"engines":{"node":">= 0.12.9"},"author":{"name":"fengmk2","email":"m@fengmk2.com","url":"http://fengmk2.com"},"license":"MIT","contributors":[{"name":"fengmk2","email":"m@fengmk2.com","url":"https://fengmk2.com"},{"name":"chinesedfan","email":"chinesedfan@qq.com","url":"https://github.com/chinesedfan"},{"name":"PlasmaPower","email":"ljbousfield@gmail.com","url":"https://github.com/PlasmaPower"},{"name":"Roman Shtylman","email":"shtylman@gmail.com","url":"https://github.com/defunctzombie"},{"name":"Adams","email":"jtyjty99999@126.com","url":"https://github.com/jtyjty99999"}],"gitHead":"825518e1f222eecaf41c6781ab0b5680d1f4a6a4","_id":"kcors@1.3.1","_shasum":"9bb64dce54623918ac58dd637e5e961cae18d667","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.0","_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"dist":{"shasum":"9bb64dce54623918ac58dd637e5e961cae18d667","size":3488,"noattachment":false,"key":"/kcors/-/kcors-1.3.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/kcors/download/kcors-1.3.1.tgz"},"maintainers":[{"name":"fengmk2","email":"fengmk2@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/kcors-1.3.1.tgz_1477069028501_0.15360832586884499"},"directories":{},"publish_time":1477069029473,"_cnpm_publish_time":1477069029473,"_hasShrinkwrap":false},"2.2.0":{"name":"kcors","version":"2.2.0","description":"Cross-Origin Resource Sharing(CORS) for koa","main":"index.js","files":["index.js"],"scripts":{"test":"NODE_ENV=test mocha --check-leaks -R spec -t 5000 test/*.test.js","test-cov":"NODE_ENV=test istanbul cover _mocha -- --check-leaks -t 5000 test/*.test.js","ci":"npm run lint && npm run test-cov","lint":"eslint index.js test","autod":"autod -w --prefix '~'","contributors":"contributors -f plain -o AUTHORS"},"dependencies":{},"devDependencies":{"autod":"*","contributors":"*","istanbul":"*","koa":"next","mocha":"*","supertest":"1","eslint-config-egg":"^2.0.0","eslint":"^2.3.0"},"homepage":"https://github.com/koajs/cors","repository":{"type":"git","url":"git://github.com/koajs/cors.git"},"bugs":{"url":"https://github.com/koajs/cors/issues","email":"m@fengmk2.com"},"keywords":["cors","koa-cors","Cross-Origin Resource Sharing","kcors","koa","koajs"],"engines":{"node":">= 4.3.1"},"publishConfig":{"tag":"next"},"author":{"name":"fengmk2","email":"m@fengmk2.com","url":"http://fengmk2.com"},"license":"MIT","contributors":[{"name":"fengmk2","email":"m@fengmk2.com","url":"https://fengmk2.com"},{"name":"Owen Smith","email":"owen@omsmith.ca"},{"name":"PlasmaPower","email":"ljbousfield@gmail.com"},{"name":"Yiyu He","email":"dead_horse@qq.com","url":"https://github.com/dead-horse"}],"gitHead":"cd8fe6d0e25df89dad4755c5f6ea8129cab6a5fb","_id":"kcors@2.2.0","_shasum":"223aa0f759605bf97dc456a72ffeeb6b239af40e","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.6.0","_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"dist":{"shasum":"223aa0f759605bf97dc456a72ffeeb6b239af40e","size":3264,"noattachment":false,"key":"/kcors/-/kcors-2.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/kcors/download/kcors-2.2.0.tgz"},"maintainers":[{"name":"fengmk2","email":"fengmk2@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/kcors-2.2.0.tgz_1474878049962_0.44717676215805113"},"directories":{},"publish_time":1474878052327,"_cnpm_publish_time":1474878052327,"_hasShrinkwrap":false},"1.3.0":{"name":"kcors","version":"1.3.0","description":"Cross-Origin Resource Sharing(CORS) for koa","main":"index.js","files":["index.js"],"scripts":{"test":"mocha --harmony -t 5000 test/*.test.js","test-cov":"node --harmony node_modules/.bin/istanbul cover _mocha -- -t 5000 test/*.test.js","ci":"npm run lint && npm run test-cov","lint":"jshint .","autod":"autod -w --prefix '^'","contributors":"contributors -f plain -o AUTHORS"},"dependencies":{"copy-to":"^2.0.1"},"devDependencies":{"autod":"*","contributors":"*","istanbul":"*","jshint":"*","koa":"1","mocha":"*","supertest":"1"},"homepage":"https://github.com/koajs/cors","repository":{"type":"git","url":"git://github.com/koajs/cors.git"},"bugs":{"url":"https://github.com/koajs/cors/issues","email":"m@fengmk2.com"},"keywords":["cors","koa-cors","Cross-Origin Resource Sharing","kcors","koa","koajs"],"engines":{"node":">= 0.12.9"},"author":{"name":"fengmk2","email":"m@fengmk2.com","url":"http://fengmk2.com"},"license":"MIT","contributors":[{"name":"fengmk2","email":"m@fengmk2.com","url":"https://fengmk2.com"},{"name":"chinesedfan","email":"chinesedfan@qq.com","url":"https://github.com/chinesedfan"},{"name":"PlasmaPower","email":"ljbousfield@gmail.com","url":"https://github.com/PlasmaPower"},{"name":"Roman Shtylman","email":"shtylman@gmail.com","url":"https://github.com/defunctzombie"}],"gitHead":"23cf0fe95ef37db61a1b88ae01ee481d5ad37fe3","_id":"kcors@1.3.0","_shasum":"d3e16193adb5fa0a5d998598243d42faf5d4fc29","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.6.0","_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"dist":{"shasum":"d3e16193adb5fa0a5d998598243d42faf5d4fc29","size":3243,"noattachment":false,"key":"/kcors/-/kcors-1.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/kcors/download/kcors-1.3.0.tgz"},"maintainers":[{"name":"fengmk2","email":"fengmk2@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/kcors-1.3.0.tgz_1474877716726_0.16930963704362512"},"directories":{},"publish_time":1474877718931,"_cnpm_publish_time":1474877718931,"_hasShrinkwrap":false},"2.1.1":{"name":"kcors","version":"2.1.1","description":"Cross-Origin Resource Sharing(CORS) for koa","main":"index.js","files":["index.js"],"scripts":{"test":"NODE_ENV=test mocha --check-leaks -R spec -t 5000 test/*.test.js","test-cov":"NODE_ENV=test istanbul cover _mocha -- --check-leaks -t 5000 test/*.test.js","ci":"npm run lint && npm run test-cov","lint":"eslint index.js test","autod":"autod -w --prefix '~'","contributors":"contributors -f plain -o AUTHORS"},"dependencies":{},"devDependencies":{"autod":"*","contributors":"*","istanbul":"*","koa":"next","mocha":"*","supertest":"1","eslint-config-egg":"^2.0.0","eslint":"^2.3.0"},"homepage":"https://github.com/koajs/cors","repository":{"type":"git","url":"git://github.com/koajs/cors.git"},"bugs":{"url":"https://github.com/koajs/cors/issues","email":"m@fengmk2.com"},"keywords":["cors","koa-cors","Cross-Origin Resource Sharing","kcors","koa","koajs"],"engines":{"node":">= 4.3.1"},"publishConfig":{"tag":"next"},"author":{"name":"fengmk2","email":"m@fengmk2.com","url":"http://fengmk2.com"},"license":"MIT","contributors":[{"name":"fengmk2","email":"m@fengmk2.com","url":"https://fengmk2.com"},{"name":"Owen Smith","email":"owen@omsmith.ca"},{"name":"PlasmaPower","email":"ljbousfield@gmail.com"},{"name":"Yiyu He","email":"dead_horse@qq.com","url":"https://github.com/dead-horse"}],"gitHead":"a62232df22ba464ce4b936c50b2f0121de198c48","_id":"kcors@2.1.1","_shasum":"d8898d04367c851579811a6ba117855929466653","_from":".","_npmVersion":"2.15.1","_nodeVersion":"4.4.4","_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"maintainers":[{"name":"fengmk2","email":"fengmk2@gmail.com"}],"dist":{"shasum":"d8898d04367c851579811a6ba117855929466653","size":3273,"noattachment":false,"key":"/kcors/-/kcors-2.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/kcors/download/kcors-2.1.1.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/kcors-2.1.1.tgz_1463234210815_0.8444319528061897"},"directories":{},"publish_time":1463234211315,"_cnpm_publish_time":1463234211315,"_hasShrinkwrap":false},"1.2.1":{"name":"kcors","version":"1.2.1","description":"Cross-Origin Resource Sharing(CORS) for koa","main":"index.js","files":["index.js"],"scripts":{"test":"mocha --harmony -t 5000 test/*.test.js","test-cov":"node --harmony node_modules/.bin/istanbul cover _mocha -- -t 5000 test/*.test.js","ci":"npm run lint && npm run test-cov","lint":"jshint .","autod":"autod -w --prefix '~'","contributors":"contributors -f plain -o AUTHORS"},"dependencies":{"copy-to":"~2.0.1"},"devDependencies":{"autod":"*","contributors":"*","istanbul":"*","jshint":"*","koa":"1","mocha":"*","supertest":"1"},"homepage":"https://github.com/koajs/cors","repository":{"type":"git","url":"git://github.com/koajs/cors.git"},"bugs":{"url":"https://github.com/koajs/cors/issues","email":"m@fengmk2.com"},"keywords":["cors","koa-cors","Cross-Origin Resource Sharing","kcors","koa","koajs"],"engines":{"node":">= 0.12.9"},"author":{"name":"fengmk2","email":"m@fengmk2.com","url":"http://fengmk2.com"},"license":"MIT","contributors":[{"name":"fengmk2","email":"m@fengmk2.com","url":"https://fengmk2.com"},{"name":"chinesedfan","email":"chinesedfan@qq.com","url":"https://github.com/chinesedfan"},{"name":"PlasmaPower","email":"ljbousfield@gmail.com","url":"https://github.com/PlasmaPower"}],"gitHead":"bb66954a44178992a8b775fd3504d4b1c84a46f0","_id":"kcors@1.2.1","_shasum":"7017cf1338a6105fb0776885955ed5cbf07368ca","_from":".","_npmVersion":"2.15.1","_nodeVersion":"4.4.4","_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"maintainers":[{"name":"fengmk2","email":"fengmk2@gmail.com"}],"dist":{"shasum":"7017cf1338a6105fb0776885955ed5cbf07368ca","size":3236,"noattachment":false,"key":"/kcors/-/kcors-1.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/kcors/download/kcors-1.2.1.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/kcors-1.2.1.tgz_1463230979411_0.48464542790316045"},"directories":{},"publish_time":1463230981227,"_cnpm_publish_time":1463230981227,"_hasShrinkwrap":false},"2.1.0":{"name":"kcors","version":"2.1.0","description":"Cross-Origin Resource Sharing(CORS) for koa","main":"index.js","files":["index.js"],"scripts":{"test":"mocha --check-leaks -R spec -t 5000 test/*.test.js","test-cov":"istanbul cover _mocha -- --check-leaks -t 5000 test/*.test.js","ci":"npm run lint && npm run test-cov","lint":"eslint index.js test","autod":"autod -w --prefix '~'","contributors":"contributors -f plain -o AUTHORS"},"dependencies":{"copy-to":"~2.0.1"},"devDependencies":{"autod":"*","contributors":"*","istanbul":"*","koa":"next","mocha":"*","supertest":"1","eslint-config-egg":"^2.0.0","eslint":"^2.3.0"},"homepage":"https://github.com/koajs/cors","repository":{"type":"git","url":"git://github.com/koajs/cors.git"},"bugs":{"url":"https://github.com/koajs/cors/issues","email":"m@fengmk2.com"},"keywords":["cors","koa-cors","Cross-Origin Resource Sharing","kcors","koa","koajs"],"engines":{"node":">= 4.3.1"},"publishConfig":{"tag":"next"},"author":{"name":"fengmk2","email":"m@fengmk2.com","url":"http://fengmk2.com"},"license":"MIT","contributors":[{"name":"fengmk2","email":"m@fengmk2.com","url":"https://fengmk2.com"},{"name":"Owen Smith","email":"owen@omsmith.ca"},{"name":"PlasmaPower","email":"ljbousfield@gmail.com"}],"gitHead":"8abe1be2b945129ddee89daad732a4187f1029e1","_id":"kcors@2.1.0","_shasum":"6540a6f150a196dbb63f1f29b7a9419a7e657013","_from":".","_npmVersion":"2.15.1","_nodeVersion":"4.4.3","_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"maintainers":[{"name":"fengmk2","email":"fengmk2@gmail.com"}],"dist":{"shasum":"6540a6f150a196dbb63f1f29b7a9419a7e657013","size":3276,"noattachment":false,"key":"/kcors/-/kcors-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/kcors/download/kcors-2.1.0.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/kcors-2.1.0.tgz_1461868101869_0.6415713666938245"},"directories":{},"publish_time":1461868104096,"_cnpm_publish_time":1461868104096,"_hasShrinkwrap":false},"1.2.0":{"name":"kcors","version":"1.2.0","description":"Cross-Origin Resource Sharing(CORS) for koa","main":"index.js","files":["index.js"],"scripts":{"test":"mocha --harmony -t 5000 test/*.test.js","test-cov":"node --harmony node_modules/.bin/istanbul cover _mocha -- -t 5000 test/*.test.js","ci":"npm run lint && npm run test-cov","lint":"jshint .","autod":"autod -w --prefix '~'","contributors":"contributors -f plain -o AUTHORS"},"dependencies":{"copy-to":"~2.0.1"},"devDependencies":{"autod":"*","contributors":"*","istanbul":"*","jshint":"*","koa":"1","mocha":"*","supertest":"1"},"homepage":"https://github.com/koajs/cors","repository":{"type":"git","url":"git://github.com/koajs/cors.git"},"bugs":{"url":"https://github.com/koajs/cors/issues","email":"m@fengmk2.com"},"keywords":["cors","koa-cors","Cross-Origin Resource Sharing","kcors","koa","koajs"],"engines":{"node":">= 0.12.9"},"author":{"name":"fengmk2","email":"m@fengmk2.com","url":"http://fengmk2.com"},"license":"MIT","contributors":[{"name":"fengmk2","email":"m@fengmk2.com","url":"https://fengmk2.com"},{"name":"chinesedfan","email":"chinesedfan@qq.com","url":"https://github.com/chinesedfan"},{"name":"PlasmaPower","email":"ljbousfield@gmail.com","url":"https://github.com/PlasmaPower"}],"gitHead":"36d11d1dee37d5a01a1eb756be574f8d30aa0db4","_id":"kcors@1.2.0","_shasum":"48ea4f346424913a974e36c41b04d7106c171c00","_from":".","_npmVersion":"2.15.1","_nodeVersion":"4.4.3","_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"maintainers":[{"name":"fengmk2","email":"fengmk2@gmail.com"}],"dist":{"shasum":"48ea4f346424913a974e36c41b04d7106c171c00","size":3260,"noattachment":false,"key":"/kcors/-/kcors-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/kcors/download/kcors-1.2.0.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/kcors-1.2.0.tgz_1461687942835_0.10246274317614734"},"directories":{},"publish_time":1461687946202,"_cnpm_publish_time":1461687946202,"_hasShrinkwrap":false},"1.1.0":{"name":"kcors","version":"1.1.0","description":"Cross-Origin Resource Sharing(CORS) for koa","main":"index.js","files":["index.js"],"scripts":{"test":"mocha --harmony -t 5000 test/*.test.js","test-cov":"node --harmony node_modules/.bin/istanbul cover _mocha -- -t 5000 test/*.test.js","ci":"npm run lint && npm run test-cov","lint":"jshint .","autod":"autod -w --prefix '~'","contributors":"contributors -f plain -o AUTHORS"},"dependencies":{"copy-to":"~2.0.1"},"devDependencies":{"autod":"*","contributors":"*","istanbul":"*","jshint":"*","koa":"1","mocha":"*","supertest":"1"},"homepage":"https://github.com/koajs/cors","repository":{"type":"git","url":"git://github.com/koajs/cors.git"},"bugs":{"url":"https://github.com/koajs/cors/issues","email":"m@fengmk2.com"},"keywords":["cors","koa-cors","Cross-Origin Resource Sharing","kcors","koa","koajs"],"engines":{"node":">= 0.12.9"},"author":{"name":"fengmk2","email":"m@fengmk2.com","url":"http://fengmk2.com"},"license":"MIT","contributors":[{"name":"fengmk2","email":"m@fengmk2.com","url":"https://fengmk2.com"},{"name":"chinesedfan","email":"chinesedfan@qq.com","url":"https://github.com/chinesedfan"}],"gitHead":"04266e02c65138c552a3b1618755f62cc25b3f10","_id":"kcors@1.1.0","_shasum":"eac07abe093b43616942ef9d992d92f4dec43028","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.3.2","_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"maintainers":[{"name":"fengmk2","email":"fengmk2@gmail.com"}],"dist":{"shasum":"eac07abe093b43616942ef9d992d92f4dec43028","size":3019,"noattachment":false,"key":"/kcors/-/kcors-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/kcors/download/kcors-1.1.0.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/kcors-1.1.0.tgz_1457285432640_0.17991950432769954"},"directories":{},"publish_time":1457285435951,"_cnpm_publish_time":1457285435951,"_hasShrinkwrap":false},"2.0.0":{"name":"kcors","version":"2.0.0","description":"Cross-Origin Resource Sharing(CORS) for koa","main":"index.js","files":["index.js"],"scripts":{"test":"mocha --check-leaks -R spec -t 5000 test/*.test.js","test-cov":"istanbul cover _mocha -- --check-leaks -t 5000 test/*.test.js","ci":"npm run lint && npm run test-cov","lint":"jshint .","autod":"autod -w --prefix '~'","contributors":"contributors -f plain -o AUTHORS"},"dependencies":{"copy-to":"~2.0.1"},"devDependencies":{"autod":"*","contributors":"*","istanbul":"*","jshint":"*","koa":"next","mocha":"*","supertest":"1"},"homepage":"https://github.com/koajs/cors","repository":{"type":"git","url":"git://github.com/koajs/cors.git"},"bugs":{"url":"https://github.com/koajs/cors/issues","email":"m@fengmk2.com"},"keywords":["cors","koa-cors","Cross-Origin Resource Sharing","kcors","koa","koajs"],"engines":{"node":">= 4.3.1"},"publishConfig":{"tag":"next"},"author":{"name":"fengmk2","email":"m@fengmk2.com","url":"http://fengmk2.com"},"license":"MIT","contributors":[{"name":"fengmk2","email":"m@fengmk2.com","url":"https://fengmk2.com"}],"gitHead":"45bbc7c6a0fb6f023827e38dc8f3e2bd739f82c1","_id":"kcors@2.0.0","_shasum":"0589cac4c6b06a8ca27ae9f2e80ac6b5f45452de","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.3.1","_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"maintainers":[{"name":"fengmk2","email":"fengmk2@gmail.com"}],"dist":{"shasum":"0589cac4c6b06a8ca27ae9f2e80ac6b5f45452de","size":2980,"noattachment":false,"key":"/kcors/-/kcors-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/kcors/download/kcors-2.0.0.tgz"},"_npmOperationalInternal":{"host":"packages-6-west.internal.npmjs.com","tmp":"tmp/kcors-2.0.0.tgz_1455945177711_0.7453888701274991"},"directories":{},"publish_time":1455945180718,"_cnpm_publish_time":1455945180718,"_hasShrinkwrap":false},"1.0.1":{"name":"kcors","version":"1.0.1","description":"Cross-Origin Resource Sharing(CORS) for koa","main":"index.js","files":["index.js"],"scripts":{"test":"mocha --harmony --check-leaks -R spec -t 5000 test/*.test.js","test-cov":"node --harmony node_modules/.bin/istanbul cover node_modules/.bin/_mocha -- --check-leaks -t 5000 test/*.test.js","test-travis":"node --harmony node_modules/.bin/istanbul cover node_modules/.bin/_mocha --report lcovonly -- --check-leaks -t 5000 test/*.test.js","jshint":"jshint .","autod":"autod -w --prefix '~'","cnpm":"npm install --registry=http://registry.npm.taobao.org","contributors":"contributors -f plain -o AUTHORS"},"dependencies":{"copy-to":"~2.0.1"},"devDependencies":{"autod":"*","contributors":"*","istanbul-harmony":"*","jshint":"*","koa":"~0.17.0","mocha":"*","supertest":"~0.15.0"},"homepage":"https://github.com/koajs/cors","repository":{"type":"git","url":"git://github.com/koajs/cors.git"},"bugs":{"url":"https://github.com/koajs/cors/issues","email":"m@fengmk2.com"},"keywords":["cors","koa-cors","Cross-Origin Resource Sharing","kcors","koa","koajs"],"engines":{"node":">= 0.11.14"},"author":{"name":"fengmk2","email":"m@fengmk2.com","url":"http://fengmk2.com"},"license":"MIT","contributors":[{"name":"fengmk2","email":"m@fengmk2.com","url":"https://fengmk2.com"}],"gitHead":"4eac7b3194c20134bb1b71088b0694e3af4de6dd","_id":"kcors@1.0.1","_shasum":"46bfad2c2eb9fa7f5c627929b48466a901e957bc","_from":".","_npmVersion":"2.4.1","_nodeVersion":"1.1.0","_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"maintainers":[{"name":"fengmk2","email":"fengmk2@gmail.com"}],"dist":{"shasum":"46bfad2c2eb9fa7f5c627929b48466a901e957bc","size":2957,"noattachment":false,"key":"/kcors/-/kcors-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/kcors/download/kcors-1.0.1.tgz"},"directories":{},"publish_time":1423642664111,"_cnpm_publish_time":1423642664111,"_hasShrinkwrap":false},"1.0.0":{"name":"kcors","version":"1.0.0","description":"Cross-Origin Resource Sharing(CORS) for koa","main":"index.js","files":["index.js"],"scripts":{"test":"mocha --harmony --check-leaks -R spec -t 5000 test/*.test.js","test-cov":"node --harmony node_modules/.bin/istanbul cover node_modules/.bin/_mocha -- --check-leaks -t 5000 test/*.test.js","test-travis":"node --harmony node_modules/.bin/istanbul cover node_modules/.bin/_mocha --report lcovonly -- --check-leaks -t 5000 test/*.test.js","jshint":"jshint .","autod":"autod -w --prefix '~'","cnpm":"npm install --registry=http://registry.npm.taobao.org","contributors":"contributors -f plain -o AUTHORS"},"dependencies":{"copy-to":"~2.0.1"},"devDependencies":{"autod":"*","contributors":"*","istanbul-harmony":"*","jshint":"*","koa":"~0.17.0","mocha":"*","supertest":"~0.15.0"},"homepage":"https://github.com/koajs/cors","repository":{"type":"git","url":"git://github.com/koajs/cors.git"},"bugs":{"url":"https://github.com/koajs/cors/issues","email":"m@fengmk2.com"},"keywords":["cors","koa-cors","Cross-Origin Resource Sharing","kcors","koa","koajs"],"engines":{"node":">= 0.11.14"},"author":{"name":"fengmk2","email":"m@fengmk2.com","url":"http://fengmk2.com"},"license":"MIT","contributors":[{"name":"fengmk2","email":"m@fengmk2.com","url":"https://fengmk2.com"}],"gitHead":"0e068974c7bf937ce90c262285a203a2538967ea","_id":"kcors@1.0.0","_shasum":"63532ac0fe662877b2f0d7df97d46b12faf8ca45","_from":".","_npmVersion":"2.4.1","_nodeVersion":"1.1.0","_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"maintainers":[{"name":"fengmk2","email":"fengmk2@gmail.com"}],"dist":{"shasum":"63532ac0fe662877b2f0d7df97d46b12faf8ca45","size":2720,"noattachment":false,"key":"/kcors/-/kcors-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/kcors/download/kcors-1.0.0.tgz"},"directories":{},"publish_time":1423460649290,"_cnpm_publish_time":1423460649290,"_hasShrinkwrap":false}},"readme":"@koa/cors\n=======\n\n[![NPM version][npm-image]][npm-url]\n[![build status][travis-image]][travis-url]\n[![Test coverage][codecov-image]][codecov-url]\n[![David deps][david-image]][david-url]\n[![npm download][download-image]][download-url]\n\n[npm-image]: https://img.shields.io/npm/v/@koa/cors.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/@koa/cors\n[travis-image]: https://img.shields.io/travis/koajs/cors.svg?style=flat-square\n[travis-url]: https://travis-ci.org/koajs/cors\n[codecov-image]: https://codecov.io/github/koajs/cors/coverage.svg?branch=v2.x\n[codecov-url]: https://codecov.io/github/koajs/cors?branch=v2.x\n[david-image]: https://img.shields.io/david/koajs/cors.svg?style=flat-square\n[david-url]: https://david-dm.org/koajs/cors\n[download-image]: https://img.shields.io/npm/dm/@koa/cors.svg?style=flat-square\n[download-url]: https://npmjs.org/package/@koa/cors\n\n[Cross-Origin Resource Sharing(CORS)](https://developer.mozilla.org/en/docs/Web/HTTP/Access_control_CORS) for koa\n\n## Installation\n\n```bash\n$ npm install @koa/cors@2 --save\n```\n\n## Quick start\n\nEnable cors with default options:\n\n- origin: request Origin header\n- allowMethods: GET,HEAD,PUT,POST,DELETE,PATCH\n\n```js\nconst Koa = require('koa');\nconst cors = require('@koa/cors');\n\nconst app = new Koa();\napp.use(cors());\n```\n\n## cors(options)\n\n```js\n/**\n * CORS middleware\n *\n * @param {Object} [options]\n *  - {String|Function(ctx)} origin `Access-Control-Allow-Origin`, default is request Origin header\n *  - {String|Array} allowMethods `Access-Control-Allow-Methods`, default is 'GET,HEAD,PUT,POST,DELETE,PATCH'\n *  - {String|Array} exposeHeaders `Access-Control-Expose-Headers`\n *  - {String|Array} allowHeaders `Access-Control-Allow-Headers`\n *  - {String|Number} maxAge `Access-Control-Max-Age` in seconds\n *  - {Boolean} credentials `Access-Control-Allow-Credentials`\n *  - {Boolean} keepHeadersOnError Add set headers to `err.header` if an error is thrown\n * @return {Function} cors middleware\n * @api public\n */\n```\n\n## License\n\n[MIT](./LICENSE)\n","_attachments":{},"homepage":"https://github.com/koajs/cors","bugs":{"url":"https://github.com/koajs/cors/issues"},"license":"MIT"}