node package manager
Loosely couple your services. Use Orgs to version and reuse your code. Create a free org »

tri

tri

Build Status NPM version

Try to execute a JavaScript function

Installation

npm install tri --save

Usage

const tri = require('tri');
 
tri(function() {
  return Promise.resolve();
}, {
  maxAttempts: 0,
  delay: 100,
  factor: 2,
  jitter: true
});