aedes-persistence-level
v8.0.1
Published
LevelDB persistence for Aedes
Downloads
763
Readme
aedes-persistence-level
Aedes persistence, backed by levelup.
See aedes-persistence for the full API, and Aedes for usage.
Install
npm i aedes aedes-persistence-level level --save
API
aedesPersistencelevel(db)
Creates a new instance of aedes-persistence-level. The first parameter is an instance of levelup.
Example:
const { Level } = require('level') // Level >= 8.0.0 is required
const aedesPersistencelevel = require('aedes-persistence-level')
// instantiate a persistence instance
aedesPersistencelevel(new Level('./mydb'))
License
MIT