finds.dev← search

// the find

JacksonTian/eventproxy

★ 2,932 · JavaScript · NOASSERTION · updated Sep 2017

An implementation of task/event based asynchronous pattern.

EventProxy is a pre-Promise async coordination library for Node.js and browsers. It solves callback hell by treating async completion as named events you can wait on individually or in combination. Aimed at developers stuck on Node 0.x-era patterns who needed something lighter than full event emitters.

The `all`/`after`/`tail` trio covers the three genuinely different fan-in patterns cleanly. The `done`+`fail` error-handling shorthand collapses boilerplate that would otherwise infect every callback. `emitLater` shows real understanding of the sync-vs-async callback hazard that bites people. Test coverage at 97% with a minimal source file (~500 lines) is a good ratio.

Abandoned since 2017 — Promises and async/await have made this pattern obsolete in every environment it targets. There is no meaningful TypeScript support despite the `index.d.ts` stub; it covers only the surface and is unmaintained. The README is primarily in Chinese with no English equivalent of the full docs, making adoption outside that ecosystem a friction point. `emitLater` uses `process.nextTick` internally, which doesn't exist in browsers, silently breaking that feature in the environments the library claims to support.

View on GitHub → Homepage ↗

// want more like this?

Every week we dig through GitHub and send you a few repos picked for what you're working on, each with an honest take like this one. Free. See a real issue →

// similar repos

Search the finds →