0.0.2 • Published 4 years ago

ipfs-lowdb-adapter v0.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

ipfs-lowdb-adapter

Ipfs LowDb Adapter

Permit to persist your lowDb database on IPFS with or without crypt.

Build Status

How to use

install package npm i ipfs-lowdb-adapter lowdb ipfs

in your code

const IPFS = require('ipfs')
const Low = require('lowdb')
const IPFSAdapter = require('ipfs-lowdb-adapter')

(async() => {
    const node = await IPFS.create()
    const adapter = new IPFSAdapter(node)
    const db = new Low(adapter)

    // you can use lowDb on ipfs
})();