Evy - fast, powerful events library based on EventEmitter3/nodejs
JavaScript CoffeeScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
benchmark
docs
test
.gitignore
.jshintrc
README.md
evy.js
listenTo.js
package.json

README.md

evy.js

Evy is a flexible events library that draws inspiration from the nodejs Event Emitter, Backbone Events and postal.js.

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
  • strict mode 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)

API

You can see all available methods in the annotated source.

Tests

npm test

Benchmarks

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