0.1.0 • Published 5 years ago
jitney v0.1.0
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();
0.1.0
5 years ago