@arcblock/swap-storage-nedb

1.7.1 • Public • Published

@arcblock/swap-storage-nedb

styled with prettier

Storage engine that uses nedb to store data, implements interfaces defined in @arcblock/swap-storage.

Table of Contents

Install

npm install @arcblock/swap-storage-nedb
// or
yarn add @arcblock/swap-storage-nedb

Usage

const DiskStorage = require('@arcblock/swap-storage-nedb');

const storage = new DiskStorage({
  dbPath: '/path/to/swap.db',
});

(async () => {
  const item = await storage.create({});
})();

Contributors

Name Website
wangshijun https://ocap.arcblock.io

Package Sidebar

Install

npm i @arcblock/swap-storage-nedb

Weekly Downloads

1

Version

1.7.1

License

Apache-2.0

Unpacked Size

14.2 kB

Total Files

5

Last publish

Collaborators

  • wangshijun
  • polunzh
  • mave99a
  • gxw