2.3.4 • Published 9 years ago

gossip-object v2.3.4

Weekly downloads
1
License
ISC
Repository
github
Last release
9 years ago

gossip-object

replicate an object with scuttlebutt

Installation

npm install gossip-object

API

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

2.3.4

9 years ago

2.3.3

10 years ago

2.3.2

10 years ago

2.3.1

10 years ago

2.3.0

10 years ago

2.2.3

10 years ago

2.2.2

10 years ago

2.2.1

10 years ago

2.2.0

10 years ago

2.1.4

10 years ago

2.1.3

10 years ago

2.1.2

10 years ago

2.1.1

10 years ago

2.1.0

10 years ago

2.0.1

10 years ago

2.0.0

10 years ago

1.0.7

10 years ago

1.0.6

10 years ago

1.0.5

10 years ago

1.0.4

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago

0.1.0

10 years ago