1.0.12 • Published 2 years ago

@mcticketingapp/common v1.0.12

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

Common Library for Error Handling and Middleware

This library contains common logic for error handling, middleware and event definitions that can be shared across different services in a microservices architecture for Ticketing app. The library is published on NPM and can be downloaded and used by other services.

Installation

You can install the package using NPM:

npm install @mcticketingapp/common

Error Example

To use the error handling middleware, simply add the following code to your express app:

const { errorHandler } = require('@mcticketingapp/common');
app.use(errorHandler);

The error handler middleware will catch any unhandled errors in your express app and return an appropriate response.

1.0.12

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago