GitShow/sindresorhus/pify
sindresorhus

pify

Promisify a callback-style function

by sindresorhus
promise-utilitiespromisespromisify
Star on GitHubForknpm

JavaScript

1.5k stars73 forks17 contributorsActive · 1mo agoSince 2015v6.1.0MIT

Meet the team

See all 17 on GitHub →
sindresorhus
sindresorhus48 contributions
dsblv
dsblv3 contributions
schnittstabil
schnittstabil2 contributions
Richienb
Richienb2 contributions
SamVerschueren
SamVerschueren2 contributions
tom-sherman
tom-sherman2 contributions
coreyfarrell
coreyfarrell1 contribution
DanSnow
DanSnow1 contribution

Languages

View on GitHub →
JavaScript71.5%
TypeScript28.5%

Commit activity

Last 12 weeks · 1 commit

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 →
martinfuchs2402-debug
docs: fix undefined variable and duplicate declaration in class exampleMergedPR

Summary The "How can I promisify a single class method?" FAQ example referenced an undefined variable instead of the declared above it, and declared twice in the same code block. Copy-pasting the example as-is would throw: Changes Replaced with (the actual declared variable) in all three usages Renamed the second to to avoid the duplicate declaration Docs-only change, no code/behavior affected.

martinfuchs2402-debug · 1mo ago
tom-sherman
Fix readme typoMergedPR
tom-sherman · 3y ago
tom-sherman
Add TypeScript definitionsMergedPR

Closes #74 Pros and cons compared to #85 Pros: No need for as many overloads Supports as many generics as you like Support for as many callback arguments as you like when . Although not sure if this is in scope in the context of the options. Cons: returns instead of erroring - at runtime this promise will simply never resolve or reject. A bit of annoying DX but isn't unsafe. Todo: [x] Promisifying modules with includes and excludes [x] Document clearly that overloaded functions are not supported and only the final overload will be chosen: https://github.com/microsoft/TypeScript/issues/32164 [x] Support [x] Support IssueHunt Summary Referenced issues This pull request has been submitted to: #74: Add TypeScript type definition

tom-sherman · 3y ago
Structured data for AI agents

Repository: sindresorhus/pify. Description: Promisify a callback-style function Stars: 1503, Forks: 73. Primary language: JavaScript. Languages: JavaScript (71.5%), TypeScript (28.5%). License: MIT. Topics: promise-utilities, promises, promisify. Latest release: v6.1.0 (3y ago). Open PRs: 0, open issues: 0. Last activity: 1mo ago. Community health: 85%. Top contributors: sindresorhus, dsblv, schnittstabil, Richienb, SamVerschueren, tom-sherman, coreyfarrell, DanSnow, danthegoodman, fregante and others.

·@ofershap

Replace github.com with gitshow.dev