@ocap/statedb-fs
Version:
OCAP statedb adapter that uses fs as backend
22 lines (14 loc) • 391 B
Markdown
# [**@ocap/statedb-fs**](https://github.com/arcblock/blockchain)
> OCAP statedb adapter that stores data to the disk through lokijs
## Install
```sh
npm install @ocap/statedb-fs
// or
bun install @ocap/statedb-fs
```
## Usage
```js
const FsStateDB = require('@ocap/statedb-fs').default;
const statedb = new FsStateDB(os.tmpdir());
statedb.account.create('123', { key: 'value' });
```