# seneca-pubsub

> A decoration that adds pub sub via Varo to Seneca

Latest version **0.1.0** (published 2016-01-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install seneca-pubsub
pnpm add seneca-pubsub
yarn add seneca-pubsub
bun add seneca-pubsub
```

## 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.1.0 |
| Published | 2016-01-04 |
| First published | 2016-01-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=4.0.0 |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Dean McDonnell |
| Maintainers | mcdonnelldean |
| Keywords | seneca, decoration, varo, pubsub, events |

## Links

- npm: https://www.npmjs.com/package/seneca-pubsub
- Repository: https://github.com/senecajs/seneca-pubsub
- Homepage: https://github.com/senecajs/seneca-pubsub#readme
- Issues: https://github.com/senecajs/seneca-pubsub/issues
- npm.io page: https://npm.io/package/seneca-pubsub

## Dependencies (1)

- [varo](https://npm.io/package/varo.md) 0.3.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.1.0 (latest) — 2016-01-04

## README

![Seneca](http://senecajs.org/files/assets/seneca-logo.png)
> A [Seneca.js][] data storage plugin.

# seneca-pubsub
[![npm version][npm-badge]][npm-url]
[![Build Status][travis-badge]][travis-url]
[![Coverage Status][coveralls-badge]][coveralls-url]
[![Dependency Status][david-badge]][david-url]
[![Gitter][gitter-badge]][gitter-url]

A decoration that adds pub sub via [Varo][] to [Seneca][]


If you're using this module, and need help, you can:

- Post a [github issue][],
- Tweet to [@senecajs][],
- Ask on the [Gitter][gitter-url].

If you are new to Seneca in general, please take a look at [senecajs.org][]. We have
everything from tutorials to sample apps to help get you up and running quickly.


## Install
This plugin, simply use npm,

```sh
npm install seneca
npm install seneca-pubsub
```

## Test
To run tests, simply use npm:

```sh
npm run test
```

## Quick Example

```js

var seneca = require('seneca')()
seneca.use(require('seneca-pubsub'))

seneca.subscribe({role: 'foo'}, function (msg) {
  console.log(msg.data.value)    
})

seneca.subscribe({role: 'foo'}, function (msg) {
  console.log(msg.data.value)    
})

seneca.publish({role: 'foo', data: {value: 10}})
seneca.publish({role: 'foo', data: {value: 10}})
seneca.publish({role: 'foo', data: {value: 10}})

// Output x6: '10'
```

## Contributing
The [Senecajs org][] encourages open participation. If you feel you can help in any way, be it with
documentation, examples, extra testing, or new features please get in touch.

## License
Copyright (c) 2015, Dean McDonnell and other contributors.
Licensed under [MIT][].

[MIT]: ./LICENSE
[npm-badge]: https://img.shields.io/npm/v/seneca-pubsub.svg
[npm-url]: https://npmjs.com/package/seneca-pubsub
[Seneca]: https://github.com/senecajs/seneca
[Varo]: https://github.com/senecajs/varo
[Senecajs org]: https://github.com/senecajs/
[Seneca.js]: https://www.npmjs.com/package/seneca
[@senecajs]: http://twitter.com/senecajs
[senecajs.org]: http://senecajs.org/
[travis-badge]: https://api.travis-ci.org/senecajs/seneca-pubsub.svg
[travis-url]: https://travis-ci.org/senecajs/seneca-pubsub
[coveralls-badge]:https://coveralls.io/repos/senecajs/seneca-pubsub/badge.svg?branch=master&service=github
[coveralls-url]: https://coveralls.io/github/senecajs/seneca-pubsub?branch=master
[david-badge]: https://david-dm.org/senecajs/seneca-pubsub.svg
[david-url]: https://david-dm.org/senecajs/seneca-pubsub
[gitter-badge]: https://badges.gitter.im/Join%20Chat.svg
[gitter-url]: https://gitter.im/senecajs/seneca
[github issue]: https://github.com/senecajs/seneca-pubsub/issues

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