Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/floatdrop/missing-middleware-error
Error class for missing middlewares
https://github.com/floatdrop/missing-middleware-error
Last synced: about 1 month ago
JSON representation
Error class for missing middlewares
- Host: GitHub
- URL: https://github.com/floatdrop/missing-middleware-error
- Owner: floatdrop
- License: mit
- Created: 2015-08-11T15:39:09.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-08-11T15:45:38.000Z (over 9 years ago)
- Last Synced: 2024-10-26T21:11:42.546Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 113 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# missing-middleware-error [![Build Status](https://travis-ci.org/floatdrop/missing-middleware-error.svg?branch=master)](https://travis-ci.org/floatdrop/missing-middleware-error)
> Error class for missing middlewares
## Install
```
$ npm install --save missing-middleware-error
```## Usage
```js
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](http://github.com/floatdrop)