Pify is a JavaScript package for converting callback-based functions into promise-returning equivalents. It can promisify a single function or process the methods of an entire module automatically. This makes older Node.js callback APIs easier to use with async and await syntax. Developers can selectively include or exclude methods through names or regular-expression patterns. The library can return multiple callback values as an array when an API provides more than one successful result. It also supports APIs that do not follow the conventional error-first callback pattern. Additional options allow the module's main function to remain untouched and permit use of a custom Promise implementation.

Features

  • Single-function promisification
  • Whole-module method promisification
  • Include and exclude method filtering
  • Multiple callback-result support
  • Non-error-first callback compatibility
  • Custom Promise implementation support

Project Samples

Project Activity

See All Activity >

Categories

Libraries

License

MIT License

Follow Pify

Pify Web Site

Other Useful Business Software
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Pify!

Additional Project Details

Programming Language

JavaScript

Related Categories

JavaScript Libraries

Registered

1 day ago