Skip to content

designcombo/events

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@designcombo/events

A lightweight, RxJS-powered event bus system for JavaScript and TypeScript applications.

Features

  • 🚀 Built on RxJS for powerful reactive programming
  • 💪 TypeScript support out of the box
  • 🎯 Simple API with EventEmitter pattern
  • 📦 Tree-shakeable and lightweight
  • 🔄 Universal module support (ESM and UMD)

Installation

npm install @designcombo/events

Usage

import { dispatch, subject, filter } from "@designcombo/events";

// Subscribe to specific events
subject
  .pipe(filter((event) => event.key === "notification"))
  .subscribe((event) => {
    console.log("Notification received:", event.value);
  });

// Dispatch events
dispatch("notification", { message: "Hello World!" });

License

MIT © Design Combo

About

Pubsub package for designcombo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published