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.

7 lines (6 loc) 172 B
// 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;