needjs
0.4.15 • Public • Published needjs

needjs is a module that will help you satisfy your needs and handles their requirement.
Installation
$ npm install --save needjs
Getting Started
var NeedJS = require('needjs');
var sys = new NeedJS();
var Need = NeedJS.Need;
sys.register(new Need({
name: 'audience',
post: function(inputs){
this.done('world');
}
}));
sys.register(new Need({
name: 'hello',
req: ['audience'],
post: function(inputs){
console.log("Hello " + inputs['audience'] + "!");
}
}));
sys.trigger('hello');
Readme
Keywords
nonePackage Sidebar
Install
Weekly Downloads