Creates a ReadableStream but keep watching for changes in the range defined.
$ npm install @geut/hyperbee-live-stream
const { HyperbeeLiveStream } = require('@geut/hyperbee-live-stream')
const stream = new HyperbeeLiveStream(db, { gte: 'a', lte: 'b' })
stream.on('data', data => console.log(data))
db.put('a')
db.put('c')
db.put('b')
// will print a, b- db: Hyperbee
- opts?: any = {}- old?: boolean = trueIterate over the old items before start to watching
- gt?: Buffer | stringOnly return keys > than this
- gte?: Buffer | stringOnly return keys >= than this
- lt?: Buffer | stringOnly return keys < than this
- lte?: Buffer | stringOnly return keys <= than this
- reverse?: boolean = falseSet to true to get them in reverse order
- limit?: number = -1Set to the max number of entries you want
 
Returns the last matched version readed
Emitted when the stream is synced with the last version in the database
- version: number
🐛 If you found an issue we encourage you to report it on github. Please specify your OS and the actions to reproduce it.
👥 Ideas and contributions to the project are welcome. You must follow this guideline.
MIT © A GEUT project