@iljucha/festival
v1.0.9
Published
Events
Downloads
1
Readme
Festival
Fairly simple Event model.
Usage
import { Festival } from "@iljucha/festival"
let events = new Festival()
events.trigger("eventname", "EventMessage", 500)
events.on("eventname", (message, someArg) => {
console.log({ message, someArg })
})