0.1.0 • Published 6 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
6 years ago