EventProxy is a lightweight JavaScript library for coordinating multiple asynchronous operations through events. It was created to replace deeply nested callbacks with flatter and more readable control flows. Developers emit named events and register handlers that run when specific combinations or quantities of events have completed. Its all and create methods wait for several different results, while after collects repeated events into an ordered array. The tail method keeps using the latest values when participating events continue to update. EventProxy also provides standard emitter operations such as on, once, emit, and listener removal. It works in Node.js and browsers and supports CommonJS, AMD, and CMD module environments.
Features
- Event-based asynchronous coordination
- Parallel result aggregation
- Repeated event collection
- Continuously updated event combinations
- Standard event emitter operations
- Browser and Node.js compatibility