I just want to say thanks, this is very clean and simple. Great work, it's sad to see it's not getting more attention. You might consider adding an example of how to bootstrap the application in the docs.
Specifically I ended up doing something like this for a new project.
var injct = require('injct');
// Register Third Party Modules
injct.static({ lodash: require('lodash') });
// Register Application Modules
injct.register({ configuration: require('./Configuration') });
injct.register({ analyticsEngine: require('./AnalyticsEngine') });
// Launch the Application Entry Point
injct.getInstance('analyticsEngine');
The injct.getInstance() function isn't in the documentation, which might be a little confusing?
I just want to say thanks, this is very clean and simple. Great work, it's sad to see it's not getting more attention. You might consider adding an example of how to bootstrap the application in the docs.
Specifically I ended up doing something like this for a new project.
The
injct.getInstance()function isn't in the documentation, which might be a little confusing?