@ocap/statedb-fs

OCAP statedb adapter that uses fs as backend

Usage no npm install needed!

<script type="module">
  import ocapStatedbFs from 'https://cdn.skypack.dev/@ocap/statedb-fs';
</script>

README

@ocap/statedb-fs

styled with prettier

OCAP statedb adapter that stores data to the disk through lokijs

Install

npm install @ocap/statedb-fs
// or
yarn add @ocap/statedb-fs

Usage

const FsStateDB = require('@ocap/statedb-fs');
const statedb = new FsStateDB(os.tmpdir());

statedb.account.create('123', { key: 'value' });