{"_id":"koa-onerror","_rev":"333522","name":"koa-onerror","description":"koa error handler, hack ctx.onerror","dist-tags":{"latest":"4.1.0"},"maintainers":[{"name":"fengmk2","email":"fengmk2@gmail.com"}],"time":{"modified":"2021-06-08T13:12:21.000Z","created":"2014-04-17T17:54:37.989Z","4.1.0":"2018-08-19T15:38:21.905Z","4.0.1":"2018-08-18T16:53:45.317Z","4.0.0":"2017-11-09T15:46:49.313Z","3.1.0":"2017-03-02T09:48:32.178Z","3.0.2":"2017-02-16T02:49:02.242Z","3.0.1":"2016-10-21T10:27:01.518Z","3.0.0":"2016-10-21T08:21:15.385Z","2.1.0":"2016-10-19T15:33:22.439Z","2.0.0":"2016-07-04T02:54:12.908Z","1.3.1":"2016-03-21T07:38:11.001Z","1.3.0":"2016-03-10T03:55:06.978Z","1.2.1":"2015-05-13T06:44:10.853Z","1.2.0":"2014-08-08T03:29:56.109Z","1.1.0":"2014-08-05T07:39:31.881Z","1.0.3":"2014-04-25T11:31:13.391Z","1.0.2":"2014-04-25T03:41:47.483Z","1.0.1":"2014-04-25T03:14:04.431Z","1.0.0":"2014-04-23T17:59:12.634Z","0.0.2":"2014-04-18T08:08:57.059Z","0.0.1":"2014-04-18T07:48:04.571Z","0.0.0":"2014-04-17T17:54:37.989Z"},"users":{"bian17888":true,"shuoshubao":true,"atomgao":true,"minghe":true,"snowdream":true,"tomgao365":true},"author":{"name":"dead_horse","email":"dead_horse@qq.com"},"repository":{"type":"git","url":"git://github.com/koajs/onerror.git"},"versions":{"4.1.0":{"name":"koa-onerror","version":"4.1.0","description":"koa error handler, hack ctx.onerror","main":"index.js","scripts":{"test":"NODE_ENV=development egg-bin test","test-cov":"NODE_ENV=development egg-bin cov","ci":"npm run lint && npm run test-cov","lint":"eslint test *.js --fix"},"files":["index.js","templates"],"repository":{"type":"git","url":"git://github.com/koajs/onerror.git"},"keywords":["koa","middleware","error"],"author":{"name":"dead_horse","email":"dead_horse@qq.com"},"license":"MIT","bugs":{"url":"https://github.com/koajs/onerror/issues"},"homepage":"https://github.com/koajs/onerror","devDependencies":{"autod":"*","co-busboy":"^1.4.0","egg-bin":"^4.3.5","egg-ci":"1","eslint":"4","eslint-config-egg":"5","formstream":"^1.1.0","koa":"2","mz-modules":"^2.1.0","pedding":"1","supertest":"3","urllib":"^2.29.1"},"engines":{"node":">= 8.0.0"},"ci":{"version":"8, 10"},"dependencies":{"escape-html":"^1.0.3","stream-wormhole":"^1.1.0"},"gitHead":"9fdb665d98b099ecc67f08c4d1bedd03d5c69758","_id":"koa-onerror@4.1.0","_npmVersion":"5.10.0","_nodeVersion":"10.8.0","_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"dist":{"shasum":"7949c7651941e67b11813bf1fad03c2d34470b1c","size":4715,"noattachment":false,"key":"/koa-onerror/-/koa-onerror-4.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/koa-onerror/download/koa-onerror-4.1.0.tgz"},"maintainers":[{"name":"fengmk2","email":"fengmk2@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/koa-onerror_4.1.0_1534693101805_0.8951716802109257"},"_hasShrinkwrap":false,"publish_time":1534693101905,"_cnpm_publish_time":1534693101905},"4.0.1":{"name":"koa-onerror","version":"4.0.1","description":"koa error handler, hack ctx.onerror","main":"index.js","scripts":{"test":"NODE_ENV=development egg-bin test","test-cov":"NODE_ENV=development egg-bin cov","ci":"npm run lint && npm run test-cov","lint":"eslint test *.js --fix"},"files":["index.js","templates"],"repository":{"type":"git","url":"git://github.com/koajs/onerror.git"},"keywords":["koa","middleware","error"],"author":{"name":"dead_horse","email":"dead_horse@qq.com"},"license":"MIT","bugs":{"url":"https://github.com/koajs/onerror/issues"},"homepage":"https://github.com/koajs/onerror","devDependencies":{"autod":"*","egg-bin":"^4.3.5","egg-ci":"1","eslint":"4","eslint-config-egg":"5","ko-sleep":"*","koa":"2","pedding":"1","supertest":"3"},"engines":{"node":">= 8.0.0"},"ci":{"version":"8, 9"},"dependencies":{"escape-html":"^1.0.3"},"gitHead":"7ce47c61fb434ca7da48a1600525839b5206413d","_id":"koa-onerror@4.0.1","_npmVersion":"5.10.0","_nodeVersion":"10.8.0","_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"dist":{"shasum":"dd10a494600882f1428f1cbcd31f488c700cd717","size":4531,"noattachment":false,"key":"/koa-onerror/-/koa-onerror-4.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/koa-onerror/download/koa-onerror-4.0.1.tgz"},"maintainers":[{"name":"fengmk2","email":"fengmk2@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/koa-onerror_4.0.1_1534611225230_0.9840167165403508"},"_hasShrinkwrap":false,"publish_time":1534611225317,"_cnpm_publish_time":1534611225317},"4.0.0":{"name":"koa-onerror","version":"4.0.0","description":"koa error handler, hack ctx.onerror","main":"index.js","scripts":{"test":"NODE_ENV=development egg-bin test","test-cov":"NODE_ENV=development egg-bin cov","ci":"npm run lint && npm run test-cov","lint":"eslint test *.js --fix"},"files":["index.js","templates"],"repository":{"type":"git","url":"git://github.com/koajs/onerror.git"},"keywords":["koa","middleware","error"],"author":{"name":"dead_horse","email":"dead_horse@qq.com"},"license":"MIT","bugs":{"url":"https://github.com/koajs/onerror/issues"},"homepage":"https://github.com/koajs/onerror","devDependencies":{"autod":"*","egg-bin":"^4.3.5","egg-ci":"1","eslint":"4","eslint-config-egg":"5","ko-sleep":"*","koa":"2","pedding":"1","supertest":"3"},"engines":{"node":">= 8.0.0"},"ci":{"version":"8, 9"},"gitHead":"052fea13b77989352bfaf5cde8bd4561d77eec6c","_id":"koa-onerror@4.0.0","_npmVersion":"5.5.1","_nodeVersion":"8.4.0","_npmUser":{"name":"dead_horse","email":"dead_horse@qq.com"},"dist":{"shasum":"2c1bbf0ac9352e702f161591ddf1e8373716d507","size":4397,"noattachment":false,"key":"/koa-onerror/-/koa-onerror-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/koa-onerror/download/koa-onerror-4.0.0.tgz"},"maintainers":[{"name":"fengmk2","email":"fengmk2@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/koa-onerror-4.0.0.tgz_1510242409140_0.07546666474081576"},"directories":{},"publish_time":1510242409313,"_cnpm_publish_time":1510242409313,"_hasShrinkwrap":false},"3.1.0":{"name":"koa-onerror","version":"3.1.0","description":"koa error handler, hack ctx.onerror","main":"index.js","scripts":{"test":"mocha test/*.test.js","test-cov":"istanbul cover node_modules/mocha/bin/_mocha -- test/*.test.js","ci":"npm run lint && npm run test-cov","lint":"eslint test *.js --fix"},"files":["index.js","templates"],"repository":{"type":"git","url":"git://github.com/koajs/onerror.git"},"keywords":["koa","middleware","error"],"author":{"name":"dead_horse","email":"dead_horse@qq.com"},"license":"MIT","bugs":{"url":"https://github.com/koajs/onerror/issues"},"homepage":"https://github.com/koajs/onerror","devDependencies":{"autod":"*","ko-sleep":"*","egg-ci":"1","eslint":"3","eslint-config-egg":"3","istanbul":"*","koa":"1","mocha":"*","pedding":"1","supertest":"3"},"engines":{"node":">= 4.0.0"},"ci":{"version":"4, 6, 7"},"gitHead":"edfff234ce93f6bb7ad9271b0ac768b90f4aeb0b","_id":"koa-onerror@3.1.0","_shasum":"13082b447f9c20847fa3ca335a8a7f1035497b13","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.9.1","_npmUser":{"name":"dead_horse","email":"dead_horse@qq.com"},"dist":{"shasum":"13082b447f9c20847fa3ca335a8a7f1035497b13","size":4301,"noattachment":false,"key":"/koa-onerror/-/koa-onerror-3.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/koa-onerror/download/koa-onerror-3.1.0.tgz"},"maintainers":[{"name":"fengmk2","email":"fengmk2@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/koa-onerror-3.1.0.tgz_1488448111912_0.11543936701491475"},"directories":{},"publish_time":1488448112178,"_cnpm_publish_time":1488448112178,"_hasShrinkwrap":false},"3.0.2":{"name":"koa-onerror","version":"3.0.2","description":"koa error handler, hack ctx.onerror","main":"index.js","scripts":{"test":"mocha test/*.test.js","test-cov":"istanbul cover node_modules/mocha/bin/_mocha -- test/*.test.js","ci":"npm run lint && npm run test-cov","lint":"eslint test *.js --fix"},"files":["index.js","templates"],"repository":{"type":"git","url":"git://github.com/koajs/onerror.git"},"keywords":["koa","middleware","error"],"author":{"name":"dead_horse","email":"dead_horse@qq.com"},"license":"MIT","bugs":{"url":"https://github.com/koajs/onerror/issues"},"homepage":"https://github.com/koajs/onerror","devDependencies":{"autod":"*","ko-sleep":"*","egg-ci":"1","eslint":"3","eslint-config-egg":"3","istanbul":"*","koa":"1","mocha":"*","pedding":"1","should":"*","supertest":"1"},"engines":{"node":">= 4.0.0"},"ci":{"version":"4, 6, 7"},"gitHead":"7a45ad7245f42cb1cef15b439a00c43bda4cc4ab","_id":"koa-onerror@3.0.2","_shasum":"5de0541a89fb735762f17a3298831f408117741e","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.9.1","_npmUser":{"name":"dead_horse","email":"dead_horse@qq.com"},"dist":{"shasum":"5de0541a89fb735762f17a3298831f408117741e","size":4223,"noattachment":false,"key":"/koa-onerror/-/koa-onerror-3.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/koa-onerror/download/koa-onerror-3.0.2.tgz"},"maintainers":[{"name":"fengmk2","email":"fengmk2@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/koa-onerror-3.0.2.tgz_1487213341984_0.051377282943576574"},"directories":{},"publish_time":1487213342242,"_cnpm_publish_time":1487213342242,"_hasShrinkwrap":false},"3.0.1":{"name":"koa-onerror","version":"3.0.1","description":"koa error handler, hack ctx.onerror","main":"index.js","scripts":{"test":"mocha test/*.test.js","test-cov":"istanbul cover node_modules/mocha/bin/_mocha -- test/*.test.js","ci":"npm run lint && npm run test-cov","lint":"eslint test *.js --fix"},"files":["index.js","templates"],"repository":{"type":"git","url":"git://github.com/koajs/onerror.git"},"keywords":["koa","middleware","error"],"author":{"name":"dead_horse","email":"dead_horse@qq.com"},"license":"MIT","bugs":{"url":"https://github.com/koajs/onerror/issues"},"homepage":"https://github.com/koajs/onerror","devDependencies":{"autod":"*","co-sleep":"*","egg-ci":"1","eslint":"2","eslint-config-egg":"2","istanbul":"*","koa":"1","mocha":"*","pedding":"1","should":"*","supertest":"1"},"engines":{"node":">= 4.0.0"},"ci":{"version":"4, 6"},"gitHead":"f2910e8ef2aa56b82d98b845568e1729bc6b6a2d","_id":"koa-onerror@3.0.1","_shasum":"72cb3fc963d4c4519024ef313c04ae6133dbaaff","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.0","_npmUser":{"name":"dead_horse","email":"dead_horse@qq.com"},"maintainers":[{"name":"fengmk2","email":"fengmk2@gmail.com"}],"dist":{"shasum":"72cb3fc963d4c4519024ef313c04ae6133dbaaff","size":4082,"noattachment":false,"key":"/koa-onerror/-/koa-onerror-3.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/koa-onerror/download/koa-onerror-3.0.1.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/koa-onerror-3.0.1.tgz_1477045619579_0.5729275550693274"},"directories":{},"publish_time":1477045621518,"_cnpm_publish_time":1477045621518,"_hasShrinkwrap":false},"3.0.0":{"name":"koa-onerror","version":"3.0.0","description":"koa error handler, hack ctx.onerror","main":"index.js","scripts":{"test":"mocha test/*.test.js","test-cov":"istanbul cover node_modules/mocha/bin/_mocha -- test/*.test.js","ci":"npm run lint && npm run test-cov","lint":"eslint test *.js --fix"},"files":["index.js","templates"],"repository":{"type":"git","url":"git://github.com/koajs/onerror.git"},"keywords":["koa","middleware","error"],"author":{"name":"dead_horse","email":"dead_horse@qq.com"},"license":"MIT","bugs":{"url":"https://github.com/koajs/onerror/issues"},"homepage":"https://github.com/koajs/onerror","devDependencies":{"autod":"*","co-sleep":"*","egg-ci":"1","eslint":"2","eslint-config-egg":"2","istanbul":"*","koa":"1","mocha":"*","pedding":"1","should":"*","supertest":"1"},"engines":{"node":">= 4.0.0"},"ci":{"version":"4, 6"},"gitHead":"dc2d33960a82acfb406a7c609acabacd152419f9","_id":"koa-onerror@3.0.0","_shasum":"ecff70fa74187af817494685031a1e6ba1d2c1e8","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.0","_npmUser":{"name":"dead_horse","email":"dead_horse@qq.com"},"maintainers":[{"name":"fengmk2","email":"fengmk2@gmail.com"}],"dist":{"shasum":"ecff70fa74187af817494685031a1e6ba1d2c1e8","size":4058,"noattachment":false,"key":"/koa-onerror/-/koa-onerror-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/koa-onerror/download/koa-onerror-3.0.0.tgz"},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/koa-onerror-3.0.0.tgz_1477038074454_0.025435253977775574"},"directories":{},"publish_time":1477038075385,"_cnpm_publish_time":1477038075385,"_hasShrinkwrap":false},"2.1.0":{"name":"koa-onerror","version":"2.1.0","description":"koa error handler, hack ctx.onerror","main":"index.js","scripts":{"test":"mocha test/*.test.js","test-cov":"istanbul cover node_modules/mocha/bin/_mocha -- test/*.test.js","ci":"npm run lint && npm run test-cov","lint":"eslint test *.js --fix"},"files":["index.js","error.html"],"repository":{"type":"git","url":"git://github.com/koajs/onerror.git"},"keywords":["koa","middleware","error"],"author":{"name":"dead_horse","email":"dead_horse@qq.com"},"license":"MIT","bugs":{"url":"https://github.com/koajs/onerror/issues"},"homepage":"https://github.com/koajs/onerror","devDependencies":{"autod":"*","co-sleep":"*","egg-ci":"1","eslint":"2","eslint-config-egg":"2","istanbul":"*","koa":"1","mocha":"*","pedding":"1","should":"*","supertest":"1"},"dependencies":{"copy-to":"^2.0.1","nunjucks":"^2.4.2"},"engines":{"node":">= 4.0.0"},"ci":{"version":"4, 6"},"gitHead":"9e81673cb575fc89139f9baecfc416a1b381a9b1","_id":"koa-onerror@2.1.0","_shasum":"206adb036cf581edd4b4fcfc9e51c79cc452dc10","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.0","_npmUser":{"name":"dead_horse","email":"dead_horse@qq.com"},"maintainers":[{"name":"fengmk2","email":"fengmk2@gmail.com"}],"dist":{"shasum":"206adb036cf581edd4b4fcfc9e51c79cc452dc10","size":4128,"noattachment":false,"key":"/koa-onerror/-/koa-onerror-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/koa-onerror/download/koa-onerror-2.1.0.tgz"},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/koa-onerror-2.1.0.tgz_1476891200567_0.3358512129634619"},"directories":{},"publish_time":1476891202439,"_cnpm_publish_time":1476891202439,"_hasShrinkwrap":false},"2.0.0":{"name":"koa-onerror","version":"2.0.0","description":"koa error handler, hack ctx.onerror","main":"index.js","scripts":{"test":"mocha test/*.test.js","test-cov":"istanbul cover node_modules/mocha/bin/_mocha -- test/*.test.js","ci":"npm run lint && npm run test-cov","lint":"eslint test *.js --fix"},"files":["index.js","error.html"],"repository":{"type":"git","url":"git://github.com/koajs/onerror.git"},"keywords":["koa","middleware","error"],"author":{"name":"dead_horse","email":"dead_horse@qq.com"},"license":"MIT","bugs":{"url":"https://github.com/koajs/onerror/issues"},"homepage":"https://github.com/koajs/onerror","devDependencies":{"autod":"*","co-sleep":"*","egg-ci":"1","eslint":"2","eslint-config-egg":"2","istanbul":"*","koa":"1","mocha":"*","pedding":"1","should":"*","supertest":"1"},"dependencies":{"copy-to":"^2.0.1","nunjucks":"^2.4.2"},"engines":{"node":">= 4.0.0"},"ci":{"version":"4, 6"},"gitHead":"49607676e8837946f931f2229d58a1e6143a3223","_id":"koa-onerror@2.0.0","_shasum":"23a50cb8e97471ae2d8ac5aab234c82f5a31b689","_from":".","_npmVersion":"3.10.3","_nodeVersion":"4.4.2","_npmUser":{"name":"dead_horse","email":"dead_horse@qq.com"},"maintainers":[{"name":"fengmk2","email":"fengmk2@gmail.com"}],"dist":{"shasum":"23a50cb8e97471ae2d8ac5aab234c82f5a31b689","size":4047,"noattachment":false,"key":"/koa-onerror/-/koa-onerror-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/koa-onerror/download/koa-onerror-2.0.0.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/koa-onerror-2.0.0.tgz_1467600850389_0.8179067790042609"},"directories":{},"publish_time":1467600852908,"_cnpm_publish_time":1467600852908,"_hasShrinkwrap":false},"1.3.1":{"name":"koa-onerror","version":"1.3.1","description":"koa error handler, hack ctx.onerror","main":"index.js","scripts":{"test":"make test"},"files":["index.js","error.html"],"repository":{"type":"git","url":"git://github.com/koajs/onerror.git"},"keywords":["koa","middleware","error"],"author":{"name":"dead_horse","email":"dead_horse@qq.com"},"license":"MIT","bugs":{"url":"https://github.com/koajs/onerror/issues"},"homepage":"https://github.com/koajs/onerror","devDependencies":{"autod":"*","co-sleep":"~0.0.1","istanbul-harmony":"*","jshint":"*","koa":"~0.20.0","mocha":"*","pedding":"~1.0.0","should":"*","supertest":"~0.15.0"},"dependencies":{"copy-to":"~2.0.1","swig":"~1.4.2"},"gitHead":"940e39e943ecbb91a57dbe204be38f1022344af2","_id":"koa-onerror@1.3.1","_shasum":"a5b561e1c87ef3289e4301746e01382f24ffbe22","_from":".","_npmVersion":"3.8.3","_nodeVersion":"4.2.4","_npmUser":{"name":"dead_horse","email":"dead_horse@qq.com"},"dist":{"shasum":"a5b561e1c87ef3289e4301746e01382f24ffbe22","size":3828,"noattachment":false,"key":"/koa-onerror/-/koa-onerror-1.3.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/koa-onerror/download/koa-onerror-1.3.1.tgz"},"maintainers":[{"name":"fengmk2","email":"fengmk2@gmail.com"}],"_npmOperationalInternal":{"host":"packages-13-west.internal.npmjs.com","tmp":"tmp/koa-onerror-1.3.1.tgz_1458545888486_0.515365281375125"},"directories":{},"publish_time":1458545891001,"_cnpm_publish_time":1458545891001,"_hasShrinkwrap":false},"1.3.0":{"name":"koa-onerror","version":"1.3.0","description":"koa error handler, hack ctx.onerror","main":"index.js","scripts":{"test":"make test"},"files":["index.js","error.html"],"repository":{"type":"git","url":"git://github.com/koajs/onerror.git"},"keywords":["koa","middleware","error"],"author":{"name":"dead_horse","email":"dead_horse@qq.com"},"license":"MIT","bugs":{"url":"https://github.com/koajs/onerror/issues"},"homepage":"https://github.com/koajs/onerror","devDependencies":{"autod":"*","co-sleep":"~0.0.1","istanbul-harmony":"*","jshint":"*","koa":"~0.20.0","mocha":"*","pedding":"~1.0.0","should":"*","supertest":"~0.15.0"},"dependencies":{"copy-to":"~2.0.1","swig":"~1.4.2"},"gitHead":"33fee7b4c46473c531588880346f767de2bdbc23","_id":"koa-onerror@1.3.0","_shasum":"e2ed0a703769eb9b50cc40135e9278784ea6bad9","_from":".","_npmVersion":"2.12.0","_nodeVersion":"4.2.4","_npmUser":{"name":"dead_horse","email":"dead_horse@qq.com"},"dist":{"shasum":"e2ed0a703769eb9b50cc40135e9278784ea6bad9","size":3800,"noattachment":false,"key":"/koa-onerror/-/koa-onerror-1.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/koa-onerror/download/koa-onerror-1.3.0.tgz"},"maintainers":[{"name":"fengmk2","email":"fengmk2@gmail.com"}],"_npmOperationalInternal":{"host":"packages-13-west.internal.npmjs.com","tmp":"tmp/koa-onerror-1.3.0.tgz_1457582106548_0.5054661000613123"},"directories":{},"publish_time":1457582106978,"_cnpm_publish_time":1457582106978,"_hasShrinkwrap":false},"1.2.1":{"name":"koa-onerror","version":"1.2.1","description":"koa error handler, hack ctx.onerror","main":"index.js","scripts":{"test":"make test"},"files":["index.js","error.html"],"repository":{"type":"git","url":"git://github.com/koajs/onerror.git"},"keywords":["koa","middleware","error"],"author":{"name":"dead_horse","email":"dead_horse@qq.com"},"license":"MIT","bugs":{"url":"https://github.com/koajs/onerror/issues"},"homepage":"https://github.com/koajs/onerror","devDependencies":{"autod":"*","co-sleep":"~0.0.1","istanbul-harmony":"*","jshint":"*","koa":"~0.20.0","mocha":"*","pedding":"~1.0.0","should":"*","supertest":"~0.15.0"},"dependencies":{"copy-to":"~2.0.1","swig":"~1.4.2"},"gitHead":"ce7dbf3fd2d3a2c869c70d22e965ae14496c7c15","_id":"koa-onerror@1.2.1","_shasum":"fb153eaeb2072c6ac1d32c2219e37eae82aaf553","_from":".","_npmVersion":"2.1.12","_nodeVersion":"0.12.2","_npmUser":{"name":"dead_horse","email":"dead_horse@qq.com"},"maintainers":[{"name":"fengmk2","email":"fengmk2@gmail.com"}],"dist":{"shasum":"fb153eaeb2072c6ac1d32c2219e37eae82aaf553","size":3698,"noattachment":false,"key":"/koa-onerror/-/koa-onerror-1.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/koa-onerror/download/koa-onerror-1.2.1.tgz"},"directories":{},"publish_time":1431499450853,"_cnpm_publish_time":1431499450853,"_hasShrinkwrap":false},"1.2.0":{"name":"koa-onerror","version":"1.2.0","description":"koa error handler, hack ctx.onerror","main":"index.js","scripts":{"test":"make test"},"files":["index.js","error.html"],"repository":{"type":"git","url":"git://github.com/koajs/onerror.git"},"keywords":["koa","middleware","error"],"author":{"name":"dead_horse","email":"dead_horse@qq.com"},"license":"MIT","bugs":{"url":"https://github.com/koajs/onerror/issues"},"homepage":"https://github.com/koajs/onerror","devDependencies":{"autod":"*","co-sleep":"~0.0.1","istanbul-harmony":"*","jshint":"*","koa":"~0.8.2","mocha":"*","pedding":"~1.0.0","should":"*","supertest":"~0.13.0"},"dependencies":{"copy-to":"~1.0.1","swig":"~1.4.2"},"gitHead":"15303852c4642d996bb9e9de772e7f1a90a67e0b","_id":"koa-onerror@1.2.0","_shasum":"0a8d7900771a9b42a507f3690998df92e72c6bfb","_from":".","_npmVersion":"2.0.0-alpha-5","_npmUser":{"name":"dead_horse","email":"dead_horse@qq.com"},"maintainers":[{"name":"fengmk2","email":"fengmk2@gmail.com"}],"dist":{"shasum":"0a8d7900771a9b42a507f3690998df92e72c6bfb","size":2619,"noattachment":false,"key":"/koa-onerror/-/koa-onerror-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/koa-onerror/download/koa-onerror-1.2.0.tgz"},"directories":{},"publish_time":1407468596109,"_cnpm_publish_time":1407468596109,"_hasShrinkwrap":false},"1.1.0":{"name":"koa-onerror","version":"1.1.0","description":"koa error handler, hack ctx.onerror","main":"index.js","scripts":{"test":"make test"},"files":["index.js","error.html"],"repository":{"type":"git","url":"git://github.com/koajs/onerror.git"},"keywords":["koa","middleware","error"],"author":{"name":"dead_horse","email":"dead_horse@qq.com"},"license":"MIT","bugs":{"url":"https://github.com/koajs/onerror/issues"},"homepage":"https://github.com/koajs/onerror","devDependencies":{"autod":"*","co-sleep":"~0.0.1","istanbul-harmony":"*","jshint":"*","koa":"~0.8.2","mocha":"*","pedding":"~1.0.0","should":"*","supertest":"~0.13.0"},"dependencies":{"copy-to":"~1.0.1","swig":"~1.4.2"},"gitHead":"5604b39b1196a282aad06a05abd99a1125b2bc52","_id":"koa-onerror@1.1.0","_shasum":"79e9d1428c0f13112ffdc0f2ae2744a18d4a0e25","_from":".","_npmVersion":"2.0.0-alpha-5","_npmUser":{"name":"dead_horse","email":"dead_horse@qq.com"},"maintainers":[{"name":"fengmk2","email":"fengmk2@gmail.com"}],"dist":{"shasum":"79e9d1428c0f13112ffdc0f2ae2744a18d4a0e25","size":2593,"noattachment":false,"key":"/koa-onerror/-/koa-onerror-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/koa-onerror/download/koa-onerror-1.1.0.tgz"},"directories":{},"publish_time":1407224371881,"_cnpm_publish_time":1407224371881,"_hasShrinkwrap":false},"1.0.3":{"name":"koa-onerror","version":"1.0.3","description":"koa error handler, hack ctx.onerror","main":"index.js","scripts":{"test":"make test"},"files":["index.js","error.html"],"repository":{"type":"git","url":"git://github.com/koajs/onerror.git"},"keywords":["koa","middleware","error"],"author":{"name":"dead_horse","email":"dead_horse@qq.com"},"license":"MIT","bugs":{"url":"https://github.com/koajs/onerror/issues"},"homepage":"https://github.com/koajs/onerror","devDependencies":{"autod":"^0.1.3","co-sleep":"0.0.1","cov":"*","istanbul-harmony":"*","jshint":"*","koa":"^0.5.5","mocha":"*","should":"*","supertest":"0.11.0"},"dependencies":{"copy-to":"^1.0.1","swig":"^1.3.2"},"_id":"koa-onerror@1.0.3","dist":{"shasum":"b7da9a01bbbf3bc19e5022df65ffc9d4b1540c89","size":2352,"noattachment":false,"key":"/koa-onerror/-/koa-onerror-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/koa-onerror/download/koa-onerror-1.0.3.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"dead_horse","email":"dead_horse@qq.com"},"maintainers":[{"name":"fengmk2","email":"fengmk2@gmail.com"}],"directories":{},"publish_time":1398425473391,"_cnpm_publish_time":1398425473391,"_hasShrinkwrap":false},"1.0.2":{"name":"koa-onerror","version":"1.0.2","description":"koa error handler, hack ctx.onerror","main":"index.js","scripts":{"test":"make test"},"files":["index.js","error.html"],"repository":{"type":"git","url":"git://github.com/koajs/onerror.git"},"keywords":["koa","middleware","error"],"author":{"name":"dead_horse","email":"dead_horse@qq.com"},"license":"MIT","bugs":{"url":"https://github.com/koajs/onerror/issues"},"homepage":"https://github.com/koajs/onerror","devDependencies":{"autod":"^0.1.3","istanbul-harmony":"*","jshint":"*","koa":"^0.5.5","mocha":"*","should":"*","supertest":"0.11.0"},"dependencies":{"copy-to":"^1.0.0","swig":"^1.3.2"},"_id":"koa-onerror@1.0.2","dist":{"shasum":"668533e0c8687e44b63cb838d89308719129460b","size":2308,"noattachment":false,"key":"/koa-onerror/-/koa-onerror-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/koa-onerror/download/koa-onerror-1.0.2.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"dead_horse","email":"dead_horse@qq.com"},"maintainers":[{"name":"fengmk2","email":"fengmk2@gmail.com"}],"directories":{},"publish_time":1398397307483,"_cnpm_publish_time":1398397307483,"_hasShrinkwrap":false},"1.0.1":{"name":"koa-onerror","version":"1.0.1","description":"koa error handler, hack ctx.onerror","main":"index.js","scripts":{"test":"make test"},"files":["index.js","error.html"],"repository":{"type":"git","url":"git://github.com/koajs/onerror.git"},"keywords":["koa","middleware","error"],"author":{"name":"dead_horse","email":"dead_horse@qq.com"},"license":"MIT","bugs":{"url":"https://github.com/koajs/onerror/issues"},"homepage":"https://github.com/koajs/onerror","devDependencies":{"autod":"^0.1.3","istanbul-harmony":"*","jshint":"*","koa":"^0.5.5","mocha":"*","should":"*","supertest":"0.11.0"},"dependencies":{"copy-to":"^1.0.0","swig":"^1.3.2"},"_id":"koa-onerror@1.0.1","dist":{"shasum":"59eec917220e2f5eb24ecc606bdf14d02a074b40","size":2298,"noattachment":false,"key":"/koa-onerror/-/koa-onerror-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/koa-onerror/download/koa-onerror-1.0.1.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"dead_horse","email":"dead_horse@qq.com"},"maintainers":[{"name":"fengmk2","email":"fengmk2@gmail.com"}],"directories":{},"publish_time":1398395644431,"_cnpm_publish_time":1398395644431,"_hasShrinkwrap":false},"1.0.0":{"name":"koa-onerror","version":"1.0.0","description":"koa error handler, hack ctx.onerror","main":"index.js","scripts":{"test":"make test"},"files":["index.js","error.html"],"repository":{"type":"git","url":"git://github.com/node-modules/koa-onerror.git"},"keywords":["koa","middleware","error"],"author":{"name":"dead_horse","email":"dead_horse@qq.com"},"license":"MIT","bugs":{"url":"https://github.com/node-modules/koa-onerror/issues"},"homepage":"https://github.com/node-modules/koa-onerror","devDependencies":{"autod":"^0.1.3","istanbul-harmony":"*","jshint":"*","koa":"^0.5.5","mocha":"*","should":"*","supertest":"0.11.0"},"dependencies":{"copy-to":"^1.0.0","swig":"^1.3.2"},"_id":"koa-onerror@1.0.0","dist":{"shasum":"843010d51122c70461d06ecb0eb4e7454ebbbf22","size":2252,"noattachment":false,"key":"/koa-onerror/-/koa-onerror-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/koa-onerror/download/koa-onerror-1.0.0.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"dead_horse","email":"dead_horse@qq.com"},"maintainers":[{"name":"fengmk2","email":"fengmk2@gmail.com"}],"directories":{},"publish_time":1398275952634,"_cnpm_publish_time":1398275952634,"_hasShrinkwrap":false},"0.0.2":{"name":"koa-onerror","version":"0.0.2","description":"koa error handler, hack ctx.onerror","main":"index.js","scripts":{"test":"make test"},"files":["index.js","error.html"],"repository":{"type":"git","url":"git://github.com/node-modules/koa-onerror.git"},"keywords":["koa","middleware","error"],"author":{"name":"dead_horse","email":"dead_horse@qq.com"},"license":"MIT","bugs":{"url":"https://github.com/node-modules/koa-onerror/issues"},"homepage":"https://github.com/node-modules/koa-onerror","devDependencies":{"autod":"^0.1.3","istanbul-harmony":"*","jshint":"*","koa":"^0.5.5","mocha":"*","should":"*","supertest":"0.11.0"},"dependencies":{"copy-to":"0.0.3","koa":"0.5.5","swig":"1.3.2"},"_id":"koa-onerror@0.0.2","dist":{"shasum":"a3ec4a51e2ee81f76641f54c8ae283ff7de73bb1","size":2242,"noattachment":false,"key":"/koa-onerror/-/koa-onerror-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/koa-onerror/download/koa-onerror-0.0.2.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"dead_horse","email":"dead_horse@qq.com"},"maintainers":[{"name":"fengmk2","email":"fengmk2@gmail.com"}],"directories":{},"publish_time":1397808537059,"_cnpm_publish_time":1397808537059,"_hasShrinkwrap":false},"0.0.1":{"name":"koa-onerror","version":"0.0.1","description":"koa error handler, hack ctx.onerror","main":"index.js","scripts":{"test":"make test"},"files":["index.js","error.html"],"repository":{"type":"git","url":"git://github.com/node-modules/koa-onerror.git"},"keywords":["koa","middleware","error"],"author":{"name":"dead_horse","email":"dead_horse@qq.com"},"license":"MIT","bugs":{"url":"https://github.com/node-modules/koa-onerror/issues"},"homepage":"https://github.com/node-modules/koa-onerror","devDependencies":{"autod":"^0.1.3","istanbul-harmony":"*","jshint":"*","koa":"^0.5.5","mocha":"*","should":"*","supertest":"0.11.0"},"dependencies":{"copy-to":"0.0.3","koa":"0.5.5","swig":"1.3.2"},"_id":"koa-onerror@0.0.1","dist":{"shasum":"5b82b3208577234286a82d67f2dfd7a0f20e2fe1","size":2236,"noattachment":false,"key":"/koa-onerror/-/koa-onerror-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/koa-onerror/download/koa-onerror-0.0.1.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"dead_horse","email":"dead_horse@qq.com"},"maintainers":[{"name":"fengmk2","email":"fengmk2@gmail.com"}],"directories":{},"publish_time":1397807284571,"_cnpm_publish_time":1397807284571,"_hasShrinkwrap":false},"0.0.0":{"name":"koa-onerror","version":"0.0.0","description":"koa error handler, hack ctx.onerror","main":"index.js","scripts":{"test":"make test"},"files":["index.js","error.html"],"repository":{"type":"git","url":"git://github.com/node-modules/koa-onerror.git"},"keywords":["koa","middleware","error"],"author":{"name":"dead_horse","email":"dead_horse@qq.com"},"license":"MIT","bugs":{"url":"https://github.com/node-modules/koa-onerror/issues"},"homepage":"https://github.com/node-modules/koa-onerror","devDependencies":{"autod":"^0.1.3","istanbul-harmony":"*","jshint":"*","koa":"^0.5.5","mocha":"*"},"dependencies":{"copy-to":"0.0.3","swig":"1.3.2"},"_id":"koa-onerror@0.0.0","dist":{"shasum":"10789029454c6e89a23d8e78fa2bafe07246aa61","size":2177,"noattachment":false,"key":"/koa-onerror/-/koa-onerror-0.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/koa-onerror/download/koa-onerror-0.0.0.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"dead_horse","email":"dead_horse@qq.com"},"maintainers":[{"name":"fengmk2","email":"fengmk2@gmail.com"}],"directories":{},"publish_time":1397757277989,"_cnpm_publish_time":1397757277989,"_hasShrinkwrap":false}},"readme":"koa-onerror\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[![Known Vulnerabilities][snyk-image]][snyk-url]\n[![npm download][download-image]][download-url]\n\n[npm-image]: https://img.shields.io/npm/v/koa-onerror.svg?style=flat\n[npm-url]: https://npmjs.org/package/koa-onerror\n[travis-image]: https://img.shields.io/travis/koajs/onerror.svg?style=flat\n[travis-url]: https://travis-ci.org/koajs/onerror\n[codecov-image]: https://codecov.io/gh/koajs/onerror/branch/master/graph/badge.svg\n[codecov-url]: https://codecov.io/gh/koajs/onerror\n[david-image]: https://img.shields.io/david/koajs/onerror.svg?style=flat\n[david-url]: https://david-dm.org/koajs/onerror\n[snyk-image]: https://snyk.io/test/npm/koa-onerror/badge.svg?style=flat-square\n[snyk-url]: https://snyk.io/test/npm/koa-onerror\n[download-image]: https://img.shields.io/npm/dm/koa-onerror.svg?style=flat-square\n[download-url]: https://npmjs.org/package/koa-onerror\n\nan error handler for koa, hack ctx.onerror.\n\ndifferent with [koa-error](https://github.com/koajs/error):\n- we can not just use try catch to handle all errors, steams' and events'\nerrors are directly handle by `ctx.onerror`, so if we want to handle all\nerrors in one place, the only way i can see is to hack `ctx.onerror`.\n- it is more customizable.\n\n## install\n\n```bash\nnpm install koa-onerror\n```\n\n## Usage\n\n```js\nconst fs = require('fs');\nconst koa = require('koa');\nconst onerror = require('koa-onerror');\n\nconst app = new koa();\n\nonerror(app);\n\napp.use(ctx => {\n  // foo();\n  ctx.body = fs.createReadStream('not exist');\n});\n```\n\n## Options\n\n```js\nonerror(app, options);\n```\n\n* **all**: if options.all exist, ignore negotiation\n* **text**: text error handler\n* **json**: json error handler\n* **html**: html error handler\n* **redirect**: if accepct html, can redirect to another error page\n\ncheck out default handler to write your own handler.\n\n## Status and Headers\n\n`koa-onerror` will automatic set `err.status` as response status code, and `err.headers` as response headers.\n\n## License\n\n[MIT](LICENSE)\n","_attachments":{},"homepage":"https://github.com/koajs/onerror","bugs":{"url":"https://github.com/koajs/onerror/issues"},"license":"MIT"}