stackman
express-Enrich Express error handler which inserts source code within stack frames.
Usage
Install module:
npm i express-stackman --save
Insert middleware into your express application after all routes and other middlewares:
var app = ; app; if processenvNODE_ENV === 'development' app;
Options
All options passed to stackman directly.
context
- The lines of context to be loaded on each side of the callsite line (default:7
)
You can see instant example by doing this:
npm inode exampleopen http://localhost:3000
(If you not - write an issue, we will figure it out)
License
MIT (c) 2014 Vsevolod Strukchinsky (floatdrop@gmail.com)