# abe-utils

> A collection of reusable class I'm going to use in my own projects

Latest version **0.1.0** (published 2017-10-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install abe-utils
pnpm add abe-utils
yarn add abe-utils
bun add abe-utils
```

## 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 | 2017-10-09 |
| First published | 2017-10-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 8 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Abe Fehr |
| Maintainers | abejfehr |

## Links

- npm: https://www.npmjs.com/package/abe-utils
- npm.io page: https://npm.io/package/abe-utils

## Dependencies (8)

- [jest](https://npm.io/package/jest.md) ^21.2.1
- [ts-jest](https://npm.io/package/ts-jest.md) ^21.1.1
- [fuse-box](https://npm.io/package/fuse-box.md) ^2.3.3
- [babel-core](https://npm.io/package/babel-core.md) ^6.26.0
- [babel-jest](https://npm.io/package/babel-jest.md) ^21.2.0
- [typescript](https://npm.io/package/typescript.md) ^2.5.3
- [babel-loader](https://npm.io/package/babel-loader.md) ^7.0.0
- [babel-preset-env](https://npm.io/package/babel-preset-env.md) ^1.6.0

## Recent versions

- 0.1.0 (latest) — 2017-10-09
- 0.0.1 — 2017-10-09

## README

# abe-utils

A collection of reusable class I'm going to use in my own projects

- [Mediator/Party](#mediator)

## Mediator/Party
<a name="mediator"></a>

A simple version of the mediator design pattern. The mediator mediates messages between _Parties_.

### Example

```
class Controller extends Party {
  ...

  tellUser () {
    this.broadcast('MESSAGE_SENT', { message: 'Hello, world!' });
  }

  ...
}

class View extends Party {
  constructor () {
    this.on('MESSAGE_SENT', alert(message));
  }

  ...
}
```

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