Structure that allows you to use local storage structure for chrome extension without async await.
npm install chrome-extension-fast-storage
npm install chrome-extension-fast-storage
yarn add chrome-extension-fast-storage
`
Usage
Example usage is as follows.
$3
`
import ChromeStorage from "chrome-extension-fast-storage";
`
$3
`
ChromeStorage.listen((storage) => {
console.log("storage changes", storage);
});
`
$3
`
ChromeStorage.set({ timer: 1 });
`
$3
`
console.log(ChromeStorage.get("timer"));
`
$3
`
console.log(ChromeStorage.getAll());
``