Skip to content

Latest commit

 

History

History
36 lines (24 loc) · 475 Bytes

readme.md

File metadata and controls

36 lines (24 loc) · 475 Bytes

level-live

Simple, light and correct LevelDB live read stream implementation.

Usage

const stream = new Live(db, { gt: 'prefix' })

stream.on('data', ({ type, key, value }) => {
  // ...
})

Installation

$ npm install level-live

API

stream = new Live(db[, opts])

opts can be a levelup style range object with any of those options:

  • gt
  • gte
  • lt
  • lte
  • start
  • end

License

MIT