function-chainer

1.0.0 • Public • Published

Function Chainer

BuildStatus CoverageStatus

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
 

Readme

Keywords

none

Package Sidebar

Install

npm i function-chainer

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • caleb.morris