function-chainer
v1.0.0
Published
Module to simplify handling child response functions
Downloads
8
Readme
Function 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