limulus

limulus/call-me-maybe

Let your JS API users either give you a callback or receive a promise

JavaScript
40
4
MIT License

This library provides a utility for JavaScript APIs to support both callback and promise-based patterns, allowing users to choose their preferred method of handling asynchronous operations. It's designed for developers building flexible APIs that need to accommodate different coding styles. The `maybe` function takes a callback and a promise, returning either the promise or handling the callback based on its presence.

Total donated
Undistributed
Share with your subscribers:

Recipients

How the donated funds are distributed

Support the dependencies

Support the repos that depend on this repository

Top contributors

limulus's profile
limulus
24 contributions
MikeRalphson's profile
MikeRalphson
1 contributions

Recent events

Kivach works on the Obyte network, and therefore you can track all donations.

No events yet