nathan7

nathan7/desync

wrap a synchronous function in an async one

JavaScript
0
0
No license

Desync is a tiny Node.js utility that converts any synchronous function into an asynchronous one by returning a new wrapper that accepts a Node‑style callback (`function(err, result)`). The wrapper guarantees asynchronous callback execution, forwards the original function’s return value as the result, and captures thrown exceptions as errors. It’s useful for developers who need to integrate legacy sync code into async workflows without rewriting the original logic.

Total donated
Undistributed
Share with your subscribers:

Recipients

How the donated funds are distributed

Support the dependencies of nathan7/desync

Account's avatar
simple, flexible, fun test framework
Account's avatar
BDD/TDD assertion library for node.js and the browser. Test framework agnostic.
Account's avatar
Spies for the Chai assertion library.

Support the repos that depend on this repository

Top contributors

edef1c's profile
edef1c
14 contributions

Recent events

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

No events yet