npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

scuttlelog

1.1.0

@mafintosh

npmHomeRepoSnykSocket
Downloads:0
$ npm install scuttlelog
DailyWeeklyMonthlyYearly

scuttlelog

The replication log from scuttlebutt but as a seperate module

npm install scuttlelog

build status

Usage

Use this to implement your own scuttlebutt like data structure with a custom changes feed

var scuttlelog = require('scuttlelog')

var log = scuttlelog()

log.change({ // add something to the changes feed
  hello: 'world'
})

var log2 = scuttlelog()

log2.on('change', function(change) {
  console.log('change received', change)
})

// replicate between the logs
var s = log.createStream()
s.pipe(log2.createStream()).pipe(s)

License

MIT