Preparing for system design interviews?  Try bugzed.com →

Flexible Async API (Callback or Promise)

JSON →
library 1.0.2 ·javascript
verified Jun 17, 2026

The `call-me-maybe` package provides a utility function designed to simplify the creation of JavaScript APIs that can gracefully accept either a traditional Node.js-style error-first callback or return a Promise for asynchronous operations. It abstracts away the common boilerplate logic needed to detect the presence of a callback argument, allowing API developers to write their core asynchronous code once. This approach helps in accommodating both classic callback-based consumers and modern Promise-driven codebases without needing to implement separate logic paths or external promisification utilities. The package is currently stable at version `1.0.2` and typically maintains a low release cadence, focusing on stability and bug fixes. Its key differentiator is enabling internal dual-interface support, streamlining the API design process for libraries targeting a broad audience.

total hits 16
actors 4 distinct systems
last hit 17d ago human
GPTBot
4
ByteDance
3
Script
1
Humans
4

top countries 🇺🇸 United States · 🇨🇦 Canada · 🇸🇬 Singapore · 🇧🇷 Brazil · 🇩🇪 Germany