UNPKG

@ocap/statedb-fs

Version:
23 lines (15 loc) 510 B
# [**@ocap/statedb-fs**](https://github.com/arcblock/blockchain) [![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](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' }); ```