koa-simple-di
v0.0.2
Published
koa-simple-di -------------
Downloads
7
Readme
koa-simple-di
var di = require('koa-simple-di');
di(app);
app.di.set('config', {
db: {
//...
}
});
app.di.set('db', function ($config) {
//...
return db;
});
License
The MIT License.