UNPKG

@ocap/indexdb-fs

Version:

OCAP indexdb adapter that uses file system as backend

22 lines (14 loc) 457 B
# [**@ocap/indexdb-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 indexdb adapter that stores data on disk through lokijs ## Install ```sh npm install @ocap/indexdb-fs // or pnpm install @ocap/indexdb-fs ``` ## Usage ```js const FsIndexDB = require('@ocap/indexdb-fs'); const indexdb = new FsIndexDB(os.tmpdir()); ```