@arcblock/swap-storage-nedb

Storage engine that uses mongodb for atomic swap

Usage no npm install needed!

<script type="module">
  import arcblockSwapStorageNedb from 'https://cdn.skypack.dev/@arcblock/swap-storage-nedb';
</script>

README

@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