/ipfs-lowdb-adapter

Ipfs LowDb Adapter

Primary LanguageJavaScriptMIT LicenseMIT

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
})();