Skip to content
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

level-live

Simple, light and correct LevelDB live read stream implementation.


Fork of voltraco/level-live with two PRs applied: #1 and #2. Published to npm as @frando/level-live


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

Additional options are:

  • old set to false to skip past entries and only listen live

Event sync

Emitted once the live stream finished the past and caught up to the present.

License

MIT

About

Simple, light and correct LevelDB live read stream implementation

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages