@nest-middlewares/errorhandler
TypeScript icon, indicating that this package has built-in type declarations

10.0.0 • Public • Published

Nest Middlewares - Error Handler

Coverage Status

This is the Nest Middleware wrapper around errorhandler.

Installation

@nest-middlewares/errorhandler is available from NPM. You can install it with this command:

npm install --save @nest-middlewares/errorhandler

Usage

import { ErrorHandlerMiddleware } from '@nest-middlewares/errorhandler';

@Module(...)
export class MyModule {
    configure(consumer: MiddlewaresConsumer) {
        // IMPORTANT! Call Middleware.configure BEFORE using it for routes
        HelmetMiddleware.configure( /* options as per helmet docs */ )
        consumer.apply(ErrorHandlerMiddleware).forRoutes( /* your routes */ );
    }
}

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
10.0.00latest

Version History

VersionDownloads (Last 7 Days)Published
10.0.00
7.0.10
7.0.00
6.0.07
5.1.10
5.1.00
5.0.00
1.1.10
1.1.00
1.0.20
1.0.10
1.0.00

Package Sidebar

Install

npm i @nest-middlewares/errorhandler

Weekly Downloads

7

Version

10.0.0

License

MIT

Unpacked Size

5.37 kB

Total Files

6

Last publish

Collaborators

  • wbhob