level-subtree

2.0.1 • Public • Published

SYNOPSIS

Build and maintain a javascript tree from the sublevels in a leveldb instance. Faster than a full scan.

USAGE

To initialize level-subtree

var Tree = require('level-subtree')
var db = require('level')('./db')
var tree = Tree(db)
 
var handle = tree.init(function(err, tree) {
  // creates a tree from the existing keys.
})

To update the tree...

handle.update(key) // use when adding a new sublevel.

Readme

Keywords

Package Sidebar

Install

npm i level-subtree

Weekly Downloads

12

Version

2.0.1

License

MIT

Last publish

Collaborators

  • hij1nx