jitney
v0.1.0
Published
Simple event bus
Downloads
2
Readme
Jitney
This project was bootstrapped with TSDX.
Jitney is a dead simple event bus.
import { eventBus } from "jitney";
const handleEvent = event => {
console.log(event);
};
const unsubscribe = eventBus.on("event", handleEvent);
eventBus.emit("event", "my custom event payload");
unsubscribe();