function-chainer
v1.0.0Function Chainer
Function chainer to simplify response function calls
Example
var chain = require('function-chainer').chain;
function base() {
console.log('BASE');
}
function child() {
console.log('CHILD');
}
var base = chain(base, { child : child });
base(); // Prints BASE
base().child(); // Prints CHILD