Skip to content

mmahrous/deject

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dependency Injection

This is a simple package for dependency injection.

Usage

const config = require('./config')
const DI = require('deject')(config)
DI.register('port', port)
DI.register('name', name)
DI.get('server')

Configuration

This DI needs a configuration as config.js file

module.exports = {
    factory: {
        ...
    },
    register: {
        ...
    }
}

License

This project is licensed under the MIT license. See the LICENSE file for more info.

About

A simple dependency injector.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published