It is designed to be used as a base library to build event-based abstractions on top of, like pub-sub or extending other object classes / prototypes.
What makes it different from your standard event-emitter?
- listenTo API for centralized management of external event handlers
strictmode where every event has to be declared on initialization (self-documenting)
- built-in debugging / stats
- async mode (to be detailed)
- channels (TBD)
- stateful events (TBD)
You can see all available methods in the annotated source.
Evy is about 10x faster than plain Backbone.Events, and on the same level of performance as node's EventEmitter (X million events/second on a standard laptop).
npm run benchmark