@mlz/store
TypeScript icon, indicating that this package has built-in type declarations

1.3.5 • Public • Published

@mlz/Store

Codacy Badge

封装localStorage, sessionStorage, cookie, indexDB.

安装

npm i @mlz/store

使用

import createStore from '@mlz/store';

const store = createStore({}); // 默认是localStorage, 通过type: 'sessionStorage'|'cookieStorage'|'indexDB'区分

store.set({a: 1});
store.update({a: 1});
store.delete('a');
store.get('a');

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.3.5
    0
    • latest

Version History

Package Sidebar

Install

npm i @mlz/store

Weekly Downloads

0

Version

1.3.5

License

MIT

Unpacked Size

136 kB

Total Files

8

Last publish

Collaborators

  • tianxing0923
  • minyillee
  • milobluebell
  • webyom
  • fukai
  • tang-tang