@adorsys-gis/event-bus
v1.0.5
Published
An event-driven library for managing custom events in JavaScript applications. Built on eventemitter3, it supports both synchronous and asynchronous event handling and ensures deep cloning of emitted data to prevent unintended mutations.
Downloads
3
Readme
EventBus Library
This library implements an EventBus for managing event-driven systems. It is built using eventemitter3, allowing subscribers to listen for and emit events with both synchronous and asynchronous handling. Additionally, the library includes deep-cloning capabilities for transferred objects.
Features
Event-driven system: Subscribe to and emit custom events. Asynchronous event handling: Supports async operations and provides robust event lifecycle management. Deep cloning: Ensures that emitted data structures are deeply cloned, preventing mutations in subscribers.