# oo7

> The Bond API

Latest version **0.7.12** (published 2019-03-27) · Apache-2.0 license · 0 weekly downloads

## Install

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

## 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.7.12 |
| Published | 2019-03-27 |
| First published | 2017-01-26 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 89.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 53 |
| Author | Parity Technologies |
| Maintainers | paritytech, tomusdrw |
| Keywords | Promise, Parity, Bond |

## Links

- npm: https://www.npmjs.com/package/oo7
- Repository: https://github.com/paritytech/oo7
- Homepage: https://github.com/paritytech/oo7#readme
- Issues: https://github.com/paritytech/oo7/issues
- npm.io page: https://npm.io/package/oo7

## Alternatives

- [promise-throttle](https://npm.io/package/promise-throttle.md) — 44.2K weekly downloads
- [@commercetools/sync-actions](https://npm.io/package/@commercetools/sync-actions.md) — 25.1K weekly downloads
- [cwait](https://npm.io/package/cwait.md) — 21.4K weekly downloads
- [@ledgerhq/hw-app-cosmos](https://npm.io/package/@ledgerhq/hw-app-cosmos.md) — 4.2K weekly downloads
- [@financial-times/o-loading](https://npm.io/package/@financial-times/o-loading.md) — 2.8K weekly downloads

## Recent versions

- 0.7.12 (latest) — 2019-03-27
- 0.7.11 — 2019-03-25
- 0.7.10 — 2019-02-11
- 0.7.9 — 2019-01-23
- 0.7.8 — 2019-01-18
- 0.7.7 — 2019-01-16
- 0.7.6 — 2018-12-29
- 0.7.5 — 2018-12-20
- 0.7.4 — 2018-12-19
- 0.7.2 — 2018-10-23
- 0.7.1 — 2018-10-12
- 0.7.0 — 2018-10-10
- 0.6.0 — 2018-10-03
- 0.5.9 — 2018-04-03
- 0.5.8 — 2017-10-23
- … 20 more at https://npm.io/package/oo7/versions

## README

oo7
=========

A small library providing what might be termed as reactive expressions, `Bond`s
(hence the name). Classes deriving from `Bond` are expected to determine when
their value has changed and call `trigger` accordingly.

`TimeBond` is provided as a simple expression type which evaluates to the
current time and triggers an update once per second.

Expressions can be composed through `TransformBond`, which allows both argument
dependencies (that get passed into the combination transform) and non-argument
dependencies (which do not). For its dependencies, `TransformBond` is able to
work with basic values, `Promise`s and other `Bonds` abstractly.

## Installation

```sh
  npm install oo7 --save
```

## Usage

```javascript
  var oo7 = require('oo7'),
      Bond = oo7.Bond,
      TimeBond = oo7.TimeBond,
	  TransformBond = oo7.TransformBond;

  let t = new TimeBond;

  // Prints the Unix time every second.
  t.tie(console.log);

  // Prints the formatted date every second.
  new TransformBond(x => new Date(x), [t]).tie(console.log);
```

## Tests

```sh
  npm test
```

## Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style.
Add unit tests for any new or changed functionality. Lint and test your code.

For development, a number of git hooks are provides that allow you to ensure tightly
couple packages remain locally referenced at development time and switched to the
proper version at commit/publish time. Simply copy all files from hooks into the git
hook path:

   cp hooks/* .git/hooks

NPM's publishing functionality automatically ensures packages reference the latest
of their dependencies in the tightly-coupled group, and bumps the patch version after
publication.

For all of this to work, ensure this, `oo7-parity`, `oo7-react` and `parity-reactive-ui`
all exist in the same parent directory.

## Release History

* 0.1.2
* 0.1.1 Minor fix.
* 0.1.0 Initial release

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