JSPM

  • Created
  • Published
  • Downloads 5211
  • Score
    100M100P100Q126132F
  • License MIT

An event system with multiple emitter patterns.

Package Exports

  • @boost/event
  • @boost/event/esm/index.js
  • @boost/event/lib/browser/index.js
  • @boost/event/lib/node/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@boost/event) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Events - Boost

Build Status npm version npm deps

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