custom-idb
v0.0.3
Published
```js import { setItem, getItem, updateItem, deleteItem } from "custom-idb";
Downloads
1
Readme
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