Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lemonhall/node-leveljs
LevelDB in pure JavaScript, a very immature work in progress
https://github.com/lemonhall/node-leveljs
Last synced: 3 months ago
JSON representation
LevelDB in pure JavaScript, a very immature work in progress
- Host: GitHub
- URL: https://github.com/lemonhall/node-leveljs
- Owner: lemonhall
- License: other
- Created: 2013-03-03T05:57:00.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-02-09T01:02:25.000Z (over 11 years ago)
- Last Synced: 2024-07-02T11:16:38.378Z (4 months ago)
- Language: JavaScript
- Size: 5.05 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-nodejs-pure-js - node-leveljs
README
# 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](https://github.com/rvagg/node-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](https://twitter.com/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.