0.0.3 • Published 1 year ago

custom-idb v0.0.3

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

Functional Way to access Browser Indexed DB API

import { setItem, getItem, updateItem, deleteItem } from "custom-idb";

// all about Async

//Set Item
await setItem("ITEM_NAME", true);

//Get Item
const item = await getItem("ITEM_NAME");

//Get Multiple Items
Promise.all([getItem("ITEM_1"), getItem("ITEM_2")]).then(
  ([firtItemVal, secondItemVal]) => {}
);

//With the same methodology you can set multiple ones
0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago

0.0.0

1 year ago