ubercod
Tiny JavaScript DI container that automatically resolves dependencies based on simple naming conventions.
Soo... "ubercod"? That's right! Lenovo injected Superfish into their computers, so Ubercod is going to inject dependencies into your dependencies. Cool? Whatever...
Installing
npm install ubercod
Including
require('ubercod');
Usage
The API consists of a single function that takes an object. The keys are the dependency names and values can be any value, but most of the time you'll use a constructor or function.
var uber = ;var app = ; // "¡Hello, World!"appphrase;
You can even chain containers:
var cont1 = ; var cont2 = ; // functioncont1dep1; // undefinedcont1dep2; // functioncont2dep1; // functioncont2dep2;