@turistforeningen/express-error
v1.0.0
Published
Custom error handler for Express.js
Downloads
1
Readme
express-error
Return JSON error objects from your Express backed API.
Requiremets
- Node.JS v4.0.0 or newer
- io.js v1.0.0 or newer
Install
npm install @turistforenignen/express-error --save
Usage
This should be put at the end of your Express route configurations. See the examples directory for more detailed examples.
app.use(require('@turistforenigen/express-error'));