@vzhdi/storage
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

@vzhdi/storage

npm version

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

Dependencies (2)

Dev Dependencies (12)

Package Sidebar

Install

npm i @vzhdi/storage

Weekly Downloads

0

Version

1.0.2

License

MIT

Unpacked Size

13.5 kB

Total Files

25

Last publish

Collaborators

  • vzhdi