@kobionic/koa-error-handler
v2.0.2
Published
A Koa middleware formatting response when an error occurs in the middleware chain.
Downloads
34
Maintainers
Readme
Koa Error Handler
A Koa middleware formatting response when an error occurs in the middleware chain.
Installation
npm install @kobionic/koa-error-handler
Usage
import errorHandler from '@kobionic/koa-error-handler';
import Koa from 'koa';
const app = new Koa();
app.use(errorHandler());
app.listen();
Run Tests
npm test
Authors
- Jeremie Rodriguez <[email protected]> - Main developer
License
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.