UNPKG
hyphy
Version:
latest (2.0.2)
2.0.2
2.0.1
2.0.0
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
produce a kefir stream of nodes that come over a hyperlog
github.com/elsehow/hyphy
elsehow/hyphy
hyphy
/
index.js
8 lines
(6 loc)
•
217 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
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'
) }