# gossip-object

> replicate an object with scuttlebutt

Latest version **2.3.4** (published 2015-04-22) · ISC license · 0 weekly downloads

## Install

```sh
npm install gossip-object
pnpm add gossip-object
yarn add gossip-object
bun add gossip-object
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.3.4 |
| Published | 2015-04-22 |
| First published | 2014-04-11 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Nathan Zadoks |
| Maintainers | nathan7 |
| Keywords | replicate, object, distributed, gossip |

## Links

- npm: https://www.npmjs.com/package/gossip-object
- Repository: https://github.com/nathan7/gossip-object
- Issues: https://github.com/nathan7/gossip-object/issues
- npm.io page: https://npm.io/package/gossip-object

## Dependencies (3)

- [fun-map](https://npm.io/package/fun-map.md) >= 3.0.0 <4
- [scuttlebutt](https://npm.io/package/scuttlebutt.md) ~5.6.8
- [binary-search](https://npm.io/package/binary-search.md) ^1.2.0

## Recent versions

- 2.3.4 (latest) — 2015-04-22
- 2.3.3 — 2014-07-02
- 2.3.2 — 2014-07-02
- 2.3.1 — 2014-07-02
- 2.3.0 — 2014-06-30
- 2.2.3 — 2014-06-30
- 2.2.2 — 2014-06-30
- 2.2.1 — 2014-06-25
- 2.2.0 — 2014-06-25
- 2.1.4 — 2014-06-25
- 2.1.3 — 2014-06-24
- 2.1.2 — 2014-06-24
- 2.1.1 — 2014-06-24
- 2.1.0 — 2014-06-24
- 2.0.1 — 2014-06-23
- … 10 more at https://npm.io/package/gossip-object/versions

## README

# gossip-object

  replicate an object with scuttlebutt

## Installation

    npm install gossip-object

## API

```js
var Model = require('gossip-object')
```

### Model()
### new Model()
  
  Make yourself a fresh one.

### model.set(key, value)
### model.set(path, value)

  set a value, with either a path (an array of keys, diving into recursive objects) or a plain key

### model.get(key, value, default)
### model.get(path, value, default)

  get a value, with either a path (an array of keys, diving into recursive objects) or a plain key


### model.delete(key)
### model.delete(path)

  delete a value, with either a path (an array of keys, diving into recursive objects) or a plain key

### model.toJSON()

  get all the data plain JS object

### model.on('change', function(old))

  get notified when changes happen, you're passed the .toJSON() from before the change so you can tell the difference.

### model.createStream()

  [Scuttlebutt replication](https://github.com/dominictarr/scuttlebutt#replication)

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