eventjs

Cross platform, asynchronous EventEmitter.

Usage no npm install needed!

<script type="module">
  import eventjs from 'https://cdn.skypack.dev/eventjs';
</script>

README

======== Event.js

Cross platform, asynchronous EventEmitter.

.. image:: https://travis-ci.org/kevinconway/Event.js.png?branch=master :target: https://travis-ci.org/kevinconway/Event.js :alt: Current Build Status

What Is Event?

Event.js is an implementation of the EventEmitter API that works in both Node.js and the browser. It should be compatible with every JavaScript inheritance utility (such as util.inherits). Alternatively, it also has its own inheritance utilities built in powered by Modelo.js <https://github.com/kevinconway/Modelo.js>_.

Show Me

::

var Person = Event.extend(),
    somePerson = new Person();

somePerson.on("birthday", function () { console.log("Happy B-Day."); })

somPerson.emit("birthday");

// At some point later:
// Console Output: "Happy B-Day."

For more detailed usage guides and API specifications, see the official EventEmitter documentation <http://nodejs.org/api/events.html>_.

Setup

Node.js

This package is published through NPM under the name eventjs::

$ npm install eventjs

Once installed, simply Event = require("eventjs").

Browser

This module uses browserify to create a browser compatible module. The default grunt workflow for this project will generate both a full and minified browser script in a build directory which can be included as a