# mqbroker

> Barebone Publish-Subscribe Broker node style

Latest version **0.0.3** (published 2014-05-18) · ISC license · 0 weekly downloads

## Install

```sh
npm install mqbroker
pnpm add mqbroker
yarn add mqbroker
bun add mqbroker
```

## 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.0.3 |
| Published | 2014-05-18 |
| First published | 2014-05-14 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Matteo Collina |
| Maintainers | matteo.collina |
| Keywords | emitter, events, message queue, mq, publish, subscribe, pub, sub |

## Links

- npm: https://www.npmjs.com/package/mqbroker
- Repository: https://github.com/mcollina/mqbroker
- Issues: http://github.com/mcollina/mqbroker/issues
- npm.io page: https://npm.io/package/mqbroker

## Dependencies (5)

- [inherits](https://npm.io/package/inherits.md) ^2.0.1
- [through2](https://npm.io/package/through2.md) ^0.4.1
- [mqstreams](https://npm.io/package/mqstreams.md) ~0.1.0
- [reduplexer](https://npm.io/package/reduplexer.md) 0.0.2
- [readable-stream](https://npm.io/package/readable-stream.md) ~1.0.26

## 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.0.3 (latest) — 2014-05-18
- 0.0.2 — 2014-05-15
- 0.0.1 — 2014-05-14

## README

mqbroker&nbsp;&nbsp;[![Build Status](https://travis-ci.org/mcollina/mqbroker.png)](https://travis-ci.org/mcollina/mqbroker)
=================================================================

Barebone Publish-Subscribe Broker node style, based on
[mqemitter](http://github.com/mcollina/mqemitter) and
[mqstreams](http://github.com/mcollina/mqstreams).

  * <a href="#install">Installation</a>
  * <a href="#basic">Basic Example</a>
  * <a href="#licence">Licence &amp; copyright</a>

<a name="install"></a>
## Installation

```bash
npm install mqbroker mqemitter --save
```

<a name="basic"></a>
## Basic Example

```js
var broker = require('mqbroker')()
  , stream = broker.stream()
  , sub    = {
        cmd: 'subscribe'
      , topic: 'hello'
    }
  , msg    = {
        cmd: 'publish'
      , topic: 'hello'
      , payload: 'world'
    }

stream.write(sub, function() {
  broker.stream().end(msg)
})

stream.on('data', function(data) {
  console.log(data)
})
```

## LICENSE

Copyright (c) 2014, Matteo Collina <hello@matteocollina.com>

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

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