@nexusts/events
v0.9.4
Published
Event emitter with wildcards, priorities, guards
Readme
@nexusts/events
NexusTS — Bun-native fullstack framework
Description
Event emitter with wildcards, priorities, guards.
Decoupled pub/sub. Wildcards, priorities, sync vs async, guards. @OnEvent('user.created') decorator sets up listeners.
Install
This module is part of the NexusTS monorepo. Each module is published as its own npm package under the @nexusts/ scope.
Most apps start with just the core:
bun add @nexusts/coreThen add this module only if you need it:
bun add @nexusts/eventsPeer dependencies
None. No external dependencies.
Usage
import { /* public API */ } from "@nexusts/events";See the user guide and the example app for a working demo.
License
MIT — see the root LICENSE.
