typed-event-bus-redone
v1.1.0
Published
[](https://choosealicense.com/licenses/gpl-3.0/)
Readme
Typed Event Bus
A typed event bus that adds types, warnings and settings as a typed version of the already exsisting Event Bus from node.js
Installation
Install typed-event-bus with npm
npm install typed-event-busUsage/Examples
Create a new event bus
import { createBus } from "typed-event-bus";
const bus = createBus();
bus.on("user:login", () => {
console.log("A user logged in!");
});
bus.emit("user:login");Set a specific setting
import { setSettingValue } from "typed-event-bus";
setSettingValue("setting_name_here", value_here);
// Example: setSettingValue("debug", true)Authors
Support
For support, please either create an issue on the github repository or ask in #help on my discord server
Feedback
If you have any feedback, please create a new post on my discord server
