@itzsunny/storageapi
TypeScript icon, indicating that this package has built-in type declarations

0.0.10 • Public • Published

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

Package Sidebar

Install

npm i @itzsunny/storageapi

Weekly Downloads

2

Version

0.0.10

License

MIT

Unpacked Size

8.76 kB

Total Files

14

Last publish

Collaborators

  • itzsunny