JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 145292
  • Score
    100M100P100Q42332F
  • License MIT

sublevels implemented using leveldowns

Package Exports

  • subleveldown
  • subleveldown/subdown

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (subleveldown) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

subleveldown

Sublevels implemented using leveldowns

npm install subleveldown

Usage

var sub = require('subleveldown')
var level = require('level')

var db = level('db')

var test = sub(db, 'test') // test is just a regular levelup
var test2 = sub(db, 'test2')
var nested = sub(test, 'nested')

test.put('hello', 'world', function() {
  nested.put('hi', 'welt', function() {
    // will print {key:'hello', value:'world'}
    test.createReadStream().on('data', console.log)
  })
})

License

MIT