ts-retry

v2.0.0
A little retry tool to execute a function until the function is sucessfull. Can also bind a timeout to a function. This lib is usable in javascript, in javascript, in node, SPA tools (rest, Vue, Svelte...) and browser (available in ESM and common js forma
typescript javascript retry repeat replay node nodejs error promise and 9 more...

test

mocha --require ts-node/register src/**/*.test.ts

build

tsc && tsc -p tsconfig.esm.json

watch

tsc --watch

prebuild

rimraf lib

test-coverage

nyc mocha --require ts-node/register src/**/*.test.ts

Metadata

  • MIT
  • Whatever
  • Franck Ledoux
  • released 1/10/2021

Downloads

Maintainers