Skip to content

Latest commit

 

History

History
39 lines (24 loc) · 829 Bytes

README.md

File metadata and controls

39 lines (24 loc) · 829 Bytes

Signal

npm build codecov

Manage a list of functions to call on demand

Installing / Getting started

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

Style guide

Prettier and eslint are used to ensure code style and format

API reference

Licensing

MIT