0.0.1 • Published 6 years ago

@bkinnamon/event-hub v0.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
6 years ago

Event Hub

An event hub where generators provide events and observers react to events.

Usage

import hub from 'event-hub'

hub.Observe(event, reaction) - Listens for event and dispatches reaction with a provided payload.

hub.Forget(event, reaction) - Stops observing the event.

hub.Generate(event, payload) - Creates an event and fires off the reactions.

0.0.1

6 years ago