@dumpstate/ixdb-kv-store
v0.2.1
Published
IndexedDB-based key-value store.
Downloads
4
Readme
ixdb-kv-store
IndexedDB API is hard to work with. Key-Value store-like wrapper to make it super easy.
Installation
Install package:
npm install @dumpstate/ixdb-kv-store --save
Usage
Create the store:
const store = await KVStore.create("my_store")
add values:
await store.set("a-key", "a-value")
fetch values by key:
await store.get("a-key")