di-lite is initially extracted from a Backbone.js based application. In this application, RequireJs is used to wire dependencies at module level. Each module could contain multiple views and models. We found using RequireJs to wire every individual view and model is a bit of overkill and verbose, however we still want the inversion of control to keep our code nicely isolated and testable. That's the reason behind the creation of this lightweight container implementation - to provide dependencies injection at sub-modular level. di-lite can also be used standalone as a light-weight alternative to RequireJs if your application is small enough.
npm install di-lite
Make sure the following packages are installed on your machine
di-lite$ npm install