router-wrapper
This project wraps the express project router to add a couple of useful functions.
If you pass it a function which returns a promise it'll call the .then()
method to handle exceptions for you.
You can also make it bind your handlers to an object of your choice.
Example
// wrap a routervar expressRouter = express;var router = expressRouter; { router // make sure the middleware and action get called with the correct `this` // define a route with args to pass to middleware ; } { return ; }