package
Sync drop-in replacement for Promise
npm install syncpromiseGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
SyncPromise is an incomplete implementation of Promise API. SyncPromise executes your Promise based code synchronously.
Because sometimes you need to test your Promise based code in a sync scenario.
Can't handle Promise.prototype.catch for obvious reasons.