# mediatorjs

> Mediator pattern for the web and node

Latest version **0.1.4** (published 2014-10-31) · Apache2 license · 0 weekly downloads

## Install

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

## 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.4 |
| Published | 2014-10-31 |
| First published | 2014-10-17 |
| Weekly downloads | 0 |
| License | Apache2 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Parris Khachi |
| Maintainers | parris |
| Keywords | mediator, pattern |

## Links

- npm: https://www.npmjs.com/package/mediatorjs
- Repository: https://github.com/parris/mediatorjs
- Issues: https://github.com/parris/mediatorjs/issues
- npm.io page: https://npm.io/package/mediatorjs

## Dependencies (1)

- [backbone-events-standalone](https://npm.io/package/backbone-events-standalone.md) ~0.2.4

## Recent versions

- 0.1.4 (latest) — 2014-10-31
- 0.1.3 — 2014-10-31
- 0.1.2 — 2014-10-31
- 0.1.1 — 2014-10-17
- 0.1.0 — 2014-10-17

## README

mediatorjs
==========

Simple mediator pattern written in JS

mediator is a singleton. It is instantiated as soon as you require it and
should remain alive as long as your app does. It is derived from marionette's
wreqr, but we found a lot of trouble with circular dependencies while it was
pre-packaged.

API
----

    var mediator = require('mediatorjs');

    // get and set for pseudo dependency injection
    mediator.set('hello', 1);
    mediator.get('hello'); // results in 1

    // trigger
    mediator.on('blah', function(data) {});
    mediator.trigger('blah', {});

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