node-machine

node-machine/switchback

Normalize a callback to a "switchback" and vice versa

JavaScript
8
3
MIT License

Switchback is a JavaScript flow control library that normalizes callbacks to a "switchback" pattern, enabling branching logic with custom handlers while maintaining full compatibility with Node.js callbacks. It allows functions to define multiple exit points (like `success`, `error`, or custom handlers) and returns an EventEmitter for flexible usage. Designed for async function implementors and users, it works seamlessly with other flow control libraries like async, promises, and generators.

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

mikermcneil's profile
mikermcneil
69 contributions
rachaelshaw's profile
rachaelshaw
6 contributions
sgress454's profile
sgress454
3 contributions
particlebanana's profile
particlebanana
1 contributions
devinivy's profile
devinivy
1 contributions

Recent events

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

No events yet