r-value

scuttlebutt a single value

npm install r-value
3 downloads in the last week
29 downloads in the last month

r-value

A single replicated value.

I wrote this module to be a scuttlebutt that fits well with the typical document key-value store idea,

But it also works well as a demonstration of the simplest possible Scuttlebutt.

Or when you just need something really really simple that integrates with rumours

Example

var Value = require('r-value')

var v = Value()

v.set([anyObject])

v.get() //current value

v.on('update', function (value) {
  console.log('new value', value)
})

See Scuttlebutt for more documentation.

License

MIT

npm loves you