function-chainer

v1.0.0
Module to simplify handling child response functions

Function Chainer

Build
Status Coverage
Status

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
npm i function-chainer

Metadata

  • MIT
  • Whatever
  • Caleb Morris
  • released 7/30/2015

Downloads

Maintainers