custom-idb
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

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

/custom-idb/

    Package Sidebar

    Install

    npm i custom-idb

    Weekly Downloads

    0

    Version

    0.0.3

    License

    ISC

    Unpacked Size

    12.7 kB

    Total Files

    4

    Last publish

    Collaborators

    • ibrahimshamma99