reactive-steem
v0.0.5
Published
[](https://travis-ci.org/adasq/reactive-steem) [](https://badge.fury.io/js/reactive-steem)
Downloads
32
Readme
reactive-steem
Reactive Programming + STEEM
Get started
$ npm i -SE reactive-steem
Stream blocks:
const { stream } = require('reactive-steem')
stream()
.blocks
.subscribe(({ block }) => {
console.log(block)
})
Stream transactions:
const { stream, toTransaction } = require('reactive-steem')
stream()
.blocks
.pipe(toTransaction)
.subscribe(({ transaction, block }) => {
const [opType, op] = transaction.operations[0]
console.log(opType, op)
})