JSPM

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

levelDB persistence layer for gun

Package Exports

  • gun-level

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 (gun-level) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

gun-level

LevelDB is awesome. It's awesomer with gun.

This driver let's you use level as your persistence layer for gun.

usage

Just npm install gun-level and replace require('gun') with require('gun-level'). Now tell gun you want to save to level by setting the level option to true, like so:

var Gun = require('gun-level');

var gun = new Gun({
  level: true
})

Yay! You're now levelDB compatible! Now by default, your data will be saved into ./level/. You can change it by providing a path to your folder...

new Gun({
  level: {
    folder: 'fabulous/folder/path/'
  }
})

Magical. As much as I enjoy a good long read, that really is all there is to it. If you find any problems, go ahead and submit an issue or a pull request.

Thanks for checking out gun-level!