UNPKG

@ouroboros/events

Version:

Package to give the ability to subscribe to and trigger synchronous events in javascript. Useful for passing data around a project without creating import conflicts.

11 lines (8 loc) 262 B
// Import/Export Event types export type { EventCallback, EventReturn } from './Event'; // Import Events import Events from './Events'; // Create the one instance of events const events = new Events(); // Export it as the module default export default events;