wrap-error-handler
Utility used to catch unhandled exceptions in express route handlers
Installation
Using npm:
npm install --save wrap-error-handler
Usage
; { const result = ; res;} const router = express; router;
API
wrapErrorHandler(fn)
fn
Type: function
Express handler function to wrap.
Development
Install dependencies
npm install
Run linter
npm run lint
Run tests
npm run tests