express-api-errorsdeprecated

Error handling middleware for Express/Mongoose APIs.

Usage no npm install needed!

<script type="module">
  import expressApiErrors from 'https://cdn.skypack.dev/express-api-errors';
</script>

README

express-api-errors Build Status

Error handling middleware for Express/Mongoose APIs.

Install

$ npm i -S express-api-errors

Usage

import express from 'express';
import errorHandler from 'express-api-errors';

const app = express();

// Set up routes here...

app.use(errorHandler());

License

MIT © Richard Käll