iAdvize Inversion of Control container.
registry.addCoreFeature('MyCoreFeature', [function() {
// return public API
return {
method: function(){
return Math.random() > 0.5;
}
};
}]);
registry.addCoreFeature('MyCoreFeature2', ['MyCoreFeature', function(MyCoreFeature2) {
// return public API
return {
method: function(){
return MyCoreFeature2.method();
}
};
}]);
npm install iadvize-ioc-library -S
To declare a new registry do :
const registry = Registry();
Look at contribution guidelines here : CONTRIBUTING.md