0.1.0 • Published 5 years ago

jitney v0.1.0

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

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();