1.1.0 • Published 3 years ago
simplerr v1.1.0
simplerr
A simple Express error handler.
Installation
npm install simplerr --save
Usage
var express = require('express');
var simplerr = require('simplerr');
var app = express();
app.set('json spaces', 2);
app.get('/', function(req, res) {
res.send('Home is where the fart is...');
});
// Must be after other 'app.use()' and route calls
app.use(simplerr.handler);
// All sorts of magic and whatever go here