Back to Explore

sindresorhus/pify

GitHub
1 watchersOpen source

Last release: 9/2/2022

pify turns callback-style functions or whole modules into Promise-based functions. It’s useful when you want to use async/await with APIs that use callbacks, with options for handling error-first callbacks and returning multiple callback arguments.

Project status

  • The repository appears to be in low activity mode, with the last known upstream push on 2022-09-12 and no recorded updates after v6.1.0 (2022-09-02).
  • Update cadence looks sporadic rather than regular, with two updates in 2022 (v6.0.0 on 2022-06-06, then v6.1.0 on 2022-09-02).

AI summary generated Today

AI-generated from public sources. May be inaccurate. Report

Recent updates

  • v6.1.0

    9/2/2022

    This release primarily adds first-class TypeScript definitions for `pify` (along with type tests). It also updates package metadata and repository tooling to publish and verify the new `.d.ts` files, plus includes a README note about how TypeScript overload selection interacts with `pify`.

    Features
  • v6.0.0

    6/6/2022

    v6.0.0 is a major release that switches the package from CommonJS to pure ESM and drops older Node.js versions. The diff also updates the test suite and documentation to use ESM import syntax, and modernizes CI configuration.

    Breaking
  • v5.0.0

    2/14/2020

    v5.0.0 changes pify to be implemented using JavaScript Proxy, enabling lazy and more transparent wrapping behavior. The documented breaking change is raising the required Node.js version to >= 10.

    BreakingFeatures