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

1.0.19 • Public • Published

Express middlewares

errorHandler

Middleware that logs and handle errors. Use it after all routes.

Usage

import { errorHandler } from '@shopup/middlewares';

app.use(errorHandler)

healthCheck

Add a /health-check route that just returns status 204.

Usage
import { healthCheck } from '@shopup/middlewares';

app.use(healthCheck)

Readme

Keywords

none

Package Sidebar

Install

npm i @shopup/middlewares

Weekly Downloads

0

Version

1.0.19

License

ISC

Unpacked Size

225 kB

Total Files

14

Last publish

Collaborators

  • ssbeefeater