This is a simple package for dependency injection.
const config = require('./config')
const DI = require('deject')(config)
DI.register('port', port)
DI.register('name', name)
DI.get('server')
This DI needs a configuration as config.js file
module.exports = {
factory: {
...
},
register: {
...
}
}
This project is licensed under the MIT license. See the LICENSE file for more info.