simple-event-emitter

0.1.14 • Public • Published

SEE

Simple event emitter

Install:


npm install simple-event-emitter

Usage:

SEE.AddListener("notificationEvent", handler);
SEE.FireEvent("notificationEvent");
SEE.RemoveListener("notificationEvent");

SEE.AddListener("notificationEvent", handler)
   .AddListener("buildEvent", handler)
   .AddListener("routeEvent", handler)
   .AddListener("closingEvent", handler);

SEE.FireEvent("notificationEvent")
   .FireEvent("closingEvent");

function handler() {
  console.log('Event fired!');
}

Build

To build:


npm install
webpack && webpack --no-minimize

This outputs two files to the ./dist directory.

  • see.js
  • see.min.js

Package Sidebar

Install

npm i simple-event-emitter

Weekly Downloads

36

Version

0.1.14

License

MIT

Last publish

Collaborators

  • tbblls