Simple Event Bus library for event management.
npm i @savalazic/event-bus
// @event - string
// @callback - function
EventBus.addEventListener(event, callback);
// @event - string
// @callback - function
EventBus.removeEventListener(event, callback);
// @event - string
// @detail (optional) - object
EventBus.dispatchEvent(event, detail);
event-bus is released under the MIT license. Copyright © 2018 Sava Lazic.