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