micro-middleware
a simple helper to add middleware to your zeit/micro service
Install
Install with npm
$ npm i micro-middleware --save-dev
Usage
// require micro-middleware helpervar applyMiddleware = // require some middleware for microconst cors = const compress = const middleware = cors compress // create your micro serviceconst microService = async { return "hello world"} // apply middleware and exportmoduleexports =
Running tests
Install dev dependencies:
$ npm i -d && npm test
Contributing
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue
Author
Mathias Karstädt
License
Copyright © 2017 Mathias Karstädt Licensed under the MIT license.
This file was generated by readme-generator on March 03, 2017.