@itzsunny/storageapi
v0.0.10
Published
Run command for install `npm i -D @itzsunny/storageapi`
Downloads
4
Maintainers
Readme
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