# architecture-patterns

> Software Architecture Patterns

Latest version **0.2.0** (published 2018-01-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install architecture-patterns
pnpm add architecture-patterns
yarn add architecture-patterns
bun add architecture-patterns
```

## 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.2.0 |
| Published | 2018-01-20 |
| First published | 2018-01-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | abramov |

## Links

- npm: https://www.npmjs.com/package/architecture-patterns
- Repository: https://github.com/js-ee/architecture-patterns
- Homepage: https://github.com/js-ee/architecture-patterns#readme
- Issues: https://github.com/js-ee/architecture-patterns/issues
- npm.io page: https://npm.io/package/architecture-patterns

## Recent versions

- 0.2.0 (latest) — 2018-01-20
- 0.1.2 — 2018-01-20
- 0.1.1 — 2018-01-20
- 0.1.0 — 2018-01-20

## README

# architecture-patterns
Software Architecture Patterns

- Observer
- Watcher

```javascript
const Observer = require('architecture-patterns/observer');
const observer = new Observer();
observer.on('some_event', () => console.log('onEventCalled'));
observer.emit('some_event');
```

```javascript
const Watcher = require('architecture-patterns/watcher');
const watcher = new Watcher(17);
watcher.watch(() => console.log('onUpdated'));
watcher.update(42);
```

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