idbable
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()