beanie

haba + beanpoll

npm install beanie
5 downloads in the last week
21 downloads in the last month

Example


var beanie = require('beanie').loader();

beanie.
require(__dirname + "/path/to/plugin.js").
require(__dirname + "/path/to/dir").
require(__dirname + "/path/to/**/*.plugin.js").
load(function() {
    beanie.router.push('init');
})

Plugin example:


exports.plugin = function(router) {


    router.on({
        'push init': function() {
            //do something
        }
    })
}
npm loves you