require-bean

Minimal IoC container

Require Bean

This is a minimal IoC container, designed for simplicity. It's main concept is the container, in which the beans are registered. A bean is just a function that returns a value, like the following:

var mybean = function(){
    return {
        value: 'something'
        //anything here 
    }
}
npm install require-bean

[http://jsanchesleao.github.io/require-bean/]