Socket
Socket
Sign inDemoInstall

@frando/level-live

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@frando/level-live

Simple, light and correct LevelDB live read stream implementation


Version published
Maintainers
1
Created
Source

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

FAQs

Package last updated on 29 May 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc