Skip to content

moscajs/aedes-persistence-level

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aedes-persistence-level

.github/workflows/ci.yml

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