@boost/event

v5.0.0
An event system with multiple emitter patterns.
boost event emitter type-safe

Events - Boost

build status npm version

A strict event system with multiple emitter patterns.

import { Event } from '@boost/event';

const event = new Event<[string, number]>('name');

event.listen(listener);
event.emit(['abc', 123]);

Features

  • Isolated event instances for proper type-safety.
  • Supports 4 event types: standard, bail, concurrent, and waterfall.
  • Listener scopes for targeted emits.

Installation

yarn add @boost/event

Documentation

npm i @boost/event

Metadata

  • MIT
  • >=18.12.0
  • Miles Johnson
  • released 3/1/2024

Downloads

Maintainers