node package manager

tri

tri

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
});