# node-bus

> An event bus with wildcard matching

Latest version **0.3.4** (published 2012-11-28) · BSD license · 0 weekly downloads

## Install

```sh
npm install node-bus
pnpm add node-bus
yarn add node-bus
bun add node-bus
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.3.4 |
| Published | 2012-11-28 |
| First published | 2012-10-19 |
| Weekly downloads | 0 |
| License | BSD |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Dan Yoder |
| Maintainers | dyoder |
| Keywords | events, emitter |

## Links

- npm: https://www.npmjs.com/package/node-bus
- Repository: git@github.com:dyoder/bus
- npm.io page: https://npm.io/package/node-bus

## Dependencies (2)

- [colors](https://npm.io/package/colors.md) ~0.6.x
- [fairmont](https://npm.io/package/fairmont.md) ~0.1.x

## Alternatives

- [async-exit-hook](https://npm.io/package/async-exit-hook.md) — 3.7M weekly downloads
- [evnty](https://npm.io/package/evnty.md) — 7.2K weekly downloads
- [eleventy-plugin-asciidoc](https://npm.io/package/eleventy-plugin-asciidoc.md) — 3.5K weekly downloads
- [@jswork/next-get2get](https://npm.io/package/@jswork/next-get2get.md) — 945 weekly downloads
- [@dashersw/axon](https://npm.io/package/@dashersw/axon.md) — 934 weekly downloads

## Recent versions

- 0.3.4 (latest) — 2012-11-28
- 0.3.3 — 2012-11-27
- 0.3.2 — 2012-11-24
- 0.3.1 — 2012-11-21
- 0.3.0 — 2012-11-08
- 0.2.0 — 2012-10-31
- 0.1.0 — 2012-10-19

## README

# Get On The Bus

Bus is like Event Emitter, except with wildcard matching. The purpose is to allow co-operating components to share a single event bus by effectively making it possible to namespace the events on the bus and for client code to subscribe to "families" of events.

    Bus = require "./bus"
    bus = new Bus
    bus.on "*.error", (error) -> 
      {name,message} = error
      console.log "#{name}: #{message}"
    bus.emit "foo.bar.error", new Error "Ruh-roh!"
    
# Installation

Just use npm:

    npm install bus
    
# Status

Early development. Currently, the package is set up for use with CoffeeScript.

---
_Source: https://npm.io/package/node-bus · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
