0.0.2 • Published 7 years ago

qot v0.0.2

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

qot

Array based waterfall

Travis Build
Status

usage

manual
let qot = require('qot')();

qot.add((tick, name) => {
  tick(name.toUpperCase());
});

qot.add((tick, name) => {
  tick({
    name,
  });
});

qot.run('ahmet', name => {
  // log
  {
    name: 'AHMET',
  }
});
automatic
let qot = require('qot')({ ready: true });

qot.add((tick) => {
  tick("ahmet".toUpperCase());
});

qot.add((tick, name) => {
  tick({
    name,
  });
});

qot.add((tick, name) => {
  // log
  {
    name: 'AHMET',
  }
});