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 last observed upstream push and related updates are from 2022-09, about 3 years 9 months ago, so this source looks quiet or in maintenance mode rather than actively maintained as of 2026-06-09.
- Update cadence appears infrequent: a couple of major updates in 2022 (v6.0.0, then v6.1.0) after several years with changes (notably 2020, then 2022), and no further updates since late 2022.
AI summary generated
Recent updates
v6.1.0
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`.
Featuresv6.0.0
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.
Breakingv5.0.0
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.
BreakingFeaturesv4.0.1
Release v4.0.1 restores support for promisifying prototype functions, which was accidentally omitted in v4. The code change adjusts how the returned promisified wrapper forwards arguments and preserves call context.
v4.0.0
Release v4.0.0 of pify bumps the minimum supported Node.js version to 6 and adds validation for invalid inputs to the exported promisifier. Internally it refactors the promisification wrapper implementation to use rest/spread arguments and reworks callback-to-promise resolution logic slightly.
Breakingv3.0.0
pify v3.0.0 updates the supported runtime and changes several promisification behaviors. The release adds options for non-error-first APIs and improved method handling, while also introducing compatibility breaking changes around Node.js version, the placement of promiseModule configuration, and default exclusions of Stream-related methods.
BreakingFeatures