@boost/event
TypeScript icon, indicating that this package has built-in type declarations

5.0.0 • Public • Published

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

Package Sidebar

Install

npm i @boost/event

Weekly Downloads

18,815

Version

5.0.0

License

MIT

Unpacked Size

50.4 kB

Total Files

76

Last publish

Collaborators

  • milesj