Skip to content

Latest commit

 

History

History
39 lines (25 loc) · 947 Bytes

README.md

File metadata and controls

39 lines (25 loc) · 947 Bytes

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