@vzhdi/storage
v1.0.2
Published
same api to process LocalStorage,SessionStorage,MemoryStorage and Cookie
Downloads
1
Readme
@vzhdi/storage
same api to process LocalStorage,SessionStorage,MemoryStorage and Cookie
Install
Using npm:
npm install @vzhdi/storage
or using yarn:
yarn add @vzhdi/storage
Usage
import storage, {
memoryStorage,
localStorage,
sessionStorage,
cookieStorage,
} from '@vzhdi/storage';
// storage===memoryStorage is true
localStorage.setItem('uid', '@vzhdi/storage');
localStorage.getItem('uid');
localStorage.removeItem('uid');
localStorage.clear();
LICENSE
MIT