super-event-emitter
🔨 Lightweight and simple interpretation of popular event management / aggregation
Motivation
I was created a blog post (in polish) about this tool:
https://piecioshka.pl/blog/2016/01/29/narzedzia-swiata-super-event-emitter-js.html
Installation
npm install super-event-emitter
Usage — CommonJS
const EventEmitter = ;// orconst EventEmitter = ;
Usage — ECMAScript Modules (ex. in TypeScript world)
;// or// import EventEmitter from "super-event-emitter";
Demo #1 — Typical object literal
const bar = {}; EventEmitter; bar; bar;
Demo #2 — Class API from ECMAScript 2015
{ this; } const p1 = ; p1; p1;
Documentation
Unit tests
npm test
Code coverage
npm run coverage
License
The MIT License @ 2016