UNPKG

hyphy

Version:

produce a kefir stream of nodes that come over a hyperlog

8 lines (6 loc) 217 B
var Kefir = require('kefir') module.exports = (log) => { // hyperlog data cb is (err, cb) // so we can use that kefir fromStream on the log return Kefir.fromEvents(log.createReadStream({live: true}), 'data') }