# sindresorhus/pify

Promisify a callback-style function

Repository: https://github.com/sindresorhus/pify
Canonical: https://ross.abutalabs.com/products/pify
Language: JavaScript
License: MIT
License Family: permissive
Topics: promisify, promises, promise-utilities
Last push: 2026-07-23T12:49:04+00:00

## Health v2 (maintenance only)
Score: 65/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 94, release rhythm 8, longevity 100
- inputs: {"age_days": 4022, "days_push": 41, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1503, forks 73 (observed 2026-08-28T04:04:54.563397+00:00)

## What it is
A small JavaScript library that converts callback-style functions or entire modules into Promise-based APIs. It offers options like multiArgs, include/exclude method filtering, and errorFirst handling.

## Use cases
- promisify a callback-style function
- convert fs.readFile to use async/await
- wrap an entire module's methods in promises
- promisify APIs where the error is not the first callback argument
- return multiple callback arguments as an array
- exclude Sync methods when promisifying a module

## When to choose
- you need to promisify whole modules or objects, not just single functions
- you need options like multiArgs, include/exclude, or errorFirst
- you want a faster, more flexible alternative to util.promisify
- you're on an older Node.js version without util.promisify

## When to avoid
- you're on modern Node.js and util.promisify meets your needs
- the target API already returns promises
- you need promise cancellation or advanced control-flow features

## Facets
- artifact type: library
- maturity: stable
- function: concurrency, developer-tools
- domain: developer-tools, programming-languages
- platform: -
- tags: promisify, promises, callbacks, async-await, utility, nodejs, deno, javascript

## Member repositories
- sindresorhus/pify (main) score 65

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:54.563397+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:32:50.422181+00:00, confidence not recorded.
  - readme: https://github.com/sindresorhus/pify (fetched 2026-08-28T04:04:54.563397+00:00, sha 375f9fcdf364)
  - registry_npm: https://registry.npmjs.org/pify (fetched 2026-08-29T11:37:51.766326+00:00, sha aace9d7c2ff3)
- Data as of 2026-08-30T08:39:29.467469+00:00.
