express-generators
Use generators with Express.
Installation
npm install express-generators
Usage
const express = ;const expressGenerators = express;const got = ; const app = ; app; app; app; app;
API
expressGenerators(express)
Returns patched Express constructor with patched Router
class.
Following methods are wrapped to support generators:
app.get
,app.post
and other methods frommethods
packageapp.use
app.param
app.route
app.all
app.del
Notes
Rather than using the next()
method, express-generators
detects if you have written to the response.
License
MIT © Vsevolod Strukchinsky