bakeoff

0.1.0 • Public • Published

bakeoff Build Status Dependencies Status

Simple exponential bakeoff function. Allows wrapping existing functions and trying whilst not succeeded or max retires count reached. Supports callbacks and promises (ES6).

install

$ npm install bakeoff

example

var bakeoff = require('bakeoff');

bakeoff.options.max = 5; // number of max retries

var params = {
  Bucket: 'mybucket',
  Key: 'myfile',
  Body: 'hello world!'
};

bakeoff(s3.putObject, params).then(function(res) {
  console.log(res);
});

license

MIT

/bakeoff/

    Package Sidebar

    Install

    npm i bakeoff

    Weekly Downloads

    1

    Version

    0.1.0

    License

    MIT

    Last publish

    Collaborators

    • speier