1.1.0 • Published 1 year ago

just-event-bus v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Simple Event Bus for javascript that just works

const fn = (text) => console.log(text);
EventBus.on("foo", fn);

EventBus.emit("foo", "Hello World!"); // => Hello World!

Also it supports arrays:

const fn = (text) => console.log(text);
EventBus.on(["foo", "bar"], [fn]);

EventBus.emit("foo", "Hello!"); // => Hello!
EventBus.emit("bar", "World!"); // => World!
1.1.0

1 year ago

1.0.1

2 years ago

1.0.0

2 years ago