import { localStorageService, sessionStorageService } from '@global-savings-group/extension-storage';
setTimeout(async () => {
const localData = await localStorageService.get('key') ?? 1000;
await localStorageService.set('key', localData + 1);
console.log(`Local data: ${localData}`);
const sessionData = await sessionStorageService.get('key') ?? 2000;
await sessionStorageService.set('key', sessionData + 1);
console.log(`Session data: ${sessionData}`);
}, 5000);
@global-savings-group/extension-storage
0.3.1 • Public • PublishedReadme
Keywords
nonePackage Sidebar
Install
npm i @global-savings-group/extension-storage
Weekly Downloads
5
Version
0.3.1
License
none
Unpacked Size
17.4 kB
Total Files
24