Manage a list of functions to call on demand
npm install @dmail/signal
import { createSignal } from "@dmail/signal"
const signal = createSignal()
signal.listen((arg) => {
console.log(arg)
})
signal.emit("Hello world")
Executing above code logs "Hello world"
in the console
Prettier and eslint are used to ensure code style and format
MIT