GitShow/sindresorhus/p-retry
sindresorhus

p-retry

Retry a promise-returning or async function

by sindresorhus
Star on GitHubForknpm

JavaScript

1.0k stars83 forks22 contributorsQuiet · 5mo agoSince 2016v8.0.0MIT

Meet the team

See all 22 on GitHub →
sindresorhus
sindresorhus64 contributions
BendingBender
BendingBender2 contributions
timkelty
timkelty2 contributions
vonovak
vonovak1 contribution
pukuba
pukuba1 contribution
Richienb
Richienb1 contribution
peterj35
peterj351 contribution
petetnt
petetnt1 contribution

Languages

View on GitHub →
JavaScript97.6%
TypeScript2.4%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

4 of 6 standards met

Community profile →
85
✓README✓License✓Contributing✓Code of Conduct○Issue Template○PR Template

Recent fixes

View closed PRs →
THIRUNAGARISAIRAMCHARAN
docs: fix AbortError grammarMergedPR

Fix README grammar: 'No callbackS functions' -> 'No callback functions'.

THIRUNAGARISAIRAMCHARAN · 5mo ago
issuefiler
Support `error.timeout_duration` for `onFailedAttempt`.ClosedIssue

“Trying again in 32 seconds.” I propose provide , that is, _in how much time the next retry begins_, for . This can be achieved by reading .

issuefiler · 5mo ago
sagimann
SyntaxError: Cannot use import statement outside a moduleClosedIssue

While trying to use p-retry in a TypeScript project, from within a Jest test, I'm getting the following full error output: It doesn't happen with other modules, like Axios, for example. Tested with p-retry 5.1.0, Node 16.14.2, observe the error while running See attached sample project sample.zip

sagimann · 7mo ago
Structured data for AI agents

Repository: sindresorhus/p-retry. Description: Retry a promise-returning or async function Stars: 1027, Forks: 83. Primary language: JavaScript. Languages: JavaScript (97.6%), TypeScript (2.4%). License: MIT. Latest release: v8.0.0 (5mo ago). Open PRs: 0, open issues: 1. Last activity: 5mo ago. Community health: 85%. Top contributors: sindresorhus, BendingBender, timkelty, vonovak, pukuba, Richienb, peterj35, petetnt, oreporan, omril1 and others.

·@ofershap

Replace github.com with gitshow.dev