coexpress
v3.0.1
Published
let your express app.use(function * (req, res, next) {})
Downloads
6
Readme
coexpress
let your express app.use(function * (req, res, next) {})
install
npm i --save coexpress
usage
var express = require('express');
require('coexpress')(express);
var app = express();
app.use(function *(req, res, next) {
res.local.hello = yield new Promise(function (resolve) {
resolve('world');
});
next();
});
license
MIT