Detalhes do pacote

localforage-esm

electrovir2.2k(MIT or CC0 1.0)1.10.2

ESM shim for localforage

localforage, esm, indexeddb, localstorage

readme (leia-me)

localforage-esm

Simple ESM wrapper for localforage. All this does is re-export the internals of localForage such that they are ESM compatible and still type safe.

See localforage for all docs.

Usage

Same usage as localforage, just make sure to import the default localforage export:

import localforage from 'localforage-esm';

localforage.getItem('my-item').then((value) => console.log(value));