strikejs-app-service
A recursive service registry that can be used as a dependency container in JavaScript applications.
Usage
; ; registry.set'someService','some Value'; // notice that it returns a promise registry.get'someService'.thenconsole.log; // you can provie a function that returns a promise// this is useful for code splitting registry.set'someOtherService',Promise.resolve'some Value'; // or import a file using `import`registry.set'someService',import'./test' registry.get'someOtherService'.thenconsole.log; // you can also access other dependenciesregistry.set'someService', ;