sublevel
sublevels for levelup
Installation
npm install sublevel
Example
var level = ;var sublevel = ; // create a sublevel by passing a level `db` instancevar db = ;var items = ; items; // create deeper sublevels by passing the parentvar posts = ; // or alternatively by calling `.sublevel()`var comments = posts;
API
The following methods are compatible with a level
db:
put
, get
, del
, batch
, createReadStream
, createKeyStream
, createValueStream
, createWriteStream
Sub(db[, path][, options])
Creates a new sublevel under db
.
Sub#sublevel(path[, options])
Creates a new sublevel under this.
License
MIT