@rmarscher/express-error-handling

1.1.0 • Public • Published

Express Error Handling

This is a connect/express middleware to be added at the end of the middleware chain for error handling.

Tries to detect if the current request is a json api request of not. If it is, it will use our api-envelope to return and error message. Otherwise, it will use express' error template.

/@rmarscher/express-error-handling/

    Package Sidebar

    Install

    npm i @rmarscher/express-error-handling

    Weekly Downloads

    0

    Version

    1.1.0

    License

    ISC

    Last publish

    Collaborators

    • rmarscher