@kobionic/koa-error-handler
TypeScript icon, indicating that this package has built-in type declarations

2.0.2 • Public • Published

Koa Error Handler

npm version License Code style Build status

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

License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.

Dependencies (0)

    Dev Dependencies (6)

    Package Sidebar

    Install

    npm i @kobionic/koa-error-handler

    Weekly Downloads

    2

    Version

    2.0.2

    License

    Apache-2.0

    Unpacked Size

    15.5 kB

    Total Files

    6

    Last publish

    Collaborators

    • jeremiergz