A lightweight IoC Container for node
A lightweight IoC Container for node.
In electronics, a breadboard is a construction base for fast prototyping. You just plug components on it, and connects them to each other. This is what I wanted to reproduce, a simple IoC container so.
## Quick start
First, install the module :
npm install breadboard
Then, you can start using it :
var Breadboard = require"./lib"Component = BreadboardComponentbb = ;bbadd'foo' Componentnewreturn 'Hello world !';bbadd'bar' Componentnew'foo'return thisfoomethod;on'dependencies:loaded'thisfoo = dependencies'foo';;bbload;bbhas'bar'; // => truevar bar = bbget'bar';baruseFoo; // => 'Hello world !'