service-locator helps keep your system decoupled by providing a central registry where your application information can be found by other parts of you application.
npm install service-locator
Register your functions, objects, string etc using register(). Once registered with the service locator there is no way to change it.
var serviceLocator =foo = 'bar'serviceLocatorconsole // barserviceLocatorserviceLocatorlogger // Hello world
Licenced under the New BSD License