Koa middleware to add all enumerable keys to the context of each request
$ npm i koa-add-to-context
var addToContext = require('koa-add-to-context')
var koa = require('koa')
var app = koa()
app.use(addToContext({ foo: 'foo' }))
app.use(function * () {
this.body = this.foo
})
addToContext(obj: Object): GeneratorFunction
npm test
MIT