Socket
Book a DemoInstallSign in
Socket

@donutteam/koa-error-handler

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

@donutteam/koa-error-handler

A class for creating Koa middlewares that catch downstream errors.

unpublished
latest
Source
npmnpm
Version
1.3.0
Version published
Maintainers
1
Created
Source

Koa Error Handler

A class for creating Koa middlewares that catch downstream errors.

Installation

Install the package with NPM:

npm install @donutteam/koa-error-handler

Usage

To use this class, simply instantiate an instance and add it to your Koa stack:

import Koa from "koa";

import { ErrorHandlerMiddleware } from "@donutteam/koa-error-handler";

const app = new Koa();

const errorHandlerMiddleware = new ErrorHandlerMiddleware();

// Be sure to add the execute function on the instance
// and NOT the instance itself
app.use(errorHandlerMiddleware.execute);

License

MIT

Keywords

koa

FAQs

Package last updated on 07 Jun 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts