idbable

The promisify indexDB wrapper for browser which supports IE

Usage no npm install needed!

<script type="module">
  import idbable from 'https://cdn.skypack.dev/idbable';
</script>

README

idbable

npm npm

The promisify indexDB wrapper for browser which supports IE

Installation

npm i idable

import idable from 'idable'

// or
import { idable } from 'idable'

const dao = new idable('dbName', 'tableName')

Usage

  • setItem:
await dao.setItem('key', 'value')
  • getItem:
await dao.getItem('key')
  • delItem:
await dao.delItem('key')
  • keys:
await dao.keys()
  • values:
await dao.values()
  • clear:
await dao.clear()
  • dropDb:
await dao.dropDb()