localforage-esm
v1.10.2
Published
ESM shim for localforage
Downloads
103
Maintainers
Readme
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));