GitShow/sindresorhus/p-do-whilst
sindresorhus

p-do-whilst

Calls a function repeatedly while a condition returns true and then resolves the promise

by sindresorhus
Star on GitHubForknpm

JavaScript

38 stars5 forks4 contributorsQuiet · 1y agoSince 2017v2.1.0MIT

Meet the team

See all 4 on GitHub →
sindresorhus
sindresorhus8 contributions
gabmontes
gabmontes3 contributions
BendingBender
BendingBender2 contributions
Richienb
Richienb1 contribution

Languages

View on GitHub →
JavaScript90.6%
TypeScript9.4%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

4 of 6 standards met

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

Recent fixes

View closed PRs →
gabmontes
Accept an initial valueMergedPR

The initial value will be passed to the action. The result will be passed to the next call to the action. The last result will be returned. Tests, types and docs were updated. Closes #4.

gabmontes · 1y ago
gabmontes
Accept an initial valueClosedIssue

Consider supporting the injection of an initial value into the loop. The code could be updated as follows: and that would allow managing the state internally, instead of having to rely in an external variable: Note that this change would be compatible and will not break the current API.

gabmontes · 1y ago
gabmontes
Minor doc improvementMergedPR

Using a code block and removing the makes it easier to copy-paste the install command and, in some cases when more complex commands are rendered, also brings in syntax highlight.

gabmontes · 1y ago
Structured data for AI agents

Repository: sindresorhus/p-do-whilst. Description: Calls a function repeatedly while a condition returns true and then resolves the promise Stars: 38, Forks: 5. Primary language: JavaScript. Languages: JavaScript (90.6%), TypeScript (9.4%). License: MIT. Latest release: v2.1.0 (1y ago). Open PRs: 0, open issues: 0. Last activity: 1y ago. Community health: 71%. Top contributors: sindresorhus, gabmontes, BendingBender, Richienb.

·@ofershap

Replace github.com with gitshow.dev