missing-middleware-error
v1.0.1
Published
Error class for missing middlewares
Downloads
619
Readme
missing-middleware-error
Error class for missing middlewares
Install
$ npm install --save missing-middleware-error
Usage
var MissingMiddlewareError = require('missing-middleware-error');
throw new MissingMiddlewareError('cookie-parser');
/*
MissingMiddleware: cookie-parser
Add it before using this middleware: app.use(require('cookie-parser')());
Or read documentation at http://npmjs.com/cookie-parser
*/
API
MissingMiddlewareError(name)
name
Required
Type: string
Name of required middleware.
License
MIT © Vsevolod Strukchinsky