@bondsports/error-express-handler

1.0.0 • Public • Published

error-express-handler

This package exports a middleware for express that handles Error and HttpError(custom package type).

Install

npm install --save @bondsports/error-express-handler

Usage

import express from 'express';
import { getErrorHandlerMiddleware } from '@bondsports/error-express-handler';

process.env.NODE_ENV = 'development';

const app = express();

app.use('/meow', fn);

app.use(getErrorHandlerMiddleware());

app.listen(8080, function() {
    console.log('server is up');
});

Flow

Flow of package

Readme

Keywords

none

Package Sidebar

Install

npm i @bondsports/error-express-handler

Weekly Downloads

1

Version

1.0.0

License

ISC

Unpacked Size

2.58 kB

Total Files

2

Last publish

Collaborators

  • tetrobond
  • dan.spinosa--bondsports.co
  • gittyp
  • ido.naveh.bondsports
  • noam.benzeev
  • barak_matityahu
  • jbknickerbocker