Socket
Book a DemoInstallSign in
Socket

leveljs

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

leveljs

LevelDB in pure JavaScript, a very immature work in progress

latest
Source
npmnpm
Version
0.0.0-a1
Version published
Maintainers
1
Created
Source

LevelJS

A pure JavaScript implementation of LevelDB.

A very immature work-in-progress with currently not much practical use.

API

leveljs.logReader(fd)

Given a file descriptor (obtained via fs.open()), parse a LevelDB format .log file. Emits data & errors via an EventEmitter.

Events:

  • 'entry': similar to the batch() entries in LevelUP. You will either get entries of the form: { type: 'put', key: 'key', value: 'value' } or { type: 'del', key: 'key' }.
  • 'done': when parsing is complete
  • 'error': whenever there is some kind of parsing or I/O error; parsing will be halted.

Licence

LevelJS is Copyright (c) 2013 Rod Vagg @rvagg and licenced under the MIT licence. All rights not explicitly granted in the MIT license are reserved. See the included LICENSE file for more details.

FAQs

Package last updated on 12 Jan 2013

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