npm.io
0.0.10 • Published 3 years ago

@itzsunny/storageapi

Licence
MIT
Version
0.0.10
Deps
0
Size
9 kB
Vulns
0
Weekly
0

Basic Storage Api

Run command for install npm i -D @itzsunny/storageapi

Example

import Storage from '@itzsunny/storageapi';
const storage = new Storage("LOCAL");  // "LOCAL" | "SESSION"

storage.set(key, value); // Set value in localstorage
storage.get(key); // Get value in localstorage
storage.clear(key)// Clear value in localstorage
storage.cleanAll(); // Clear All value in localstorage

Keywords