coexpress
let your express app.use(function * (req, res, next) {})
Last updated 2 years ago by undozen .
MIT · Repository · Bugs · Original npm · Tarball
$ cnpm install coexpress 
SYNC missed versions from official npm registry.

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

Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 1
Dependencies (3)
Dev Dependencies (4)
Dependents (2)

Copyright 2014 - 2017 © taobao.org |