va-storage
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

va-storage

安装教程

  1. npm install va-storage

  2. import { storage } from 'va-storage'
    // storage("xxxxxxxxxxxxxx") xxx 为存储加密的key
    const { localStorage, sessionStorage } = storage("xxxxxxxxxxxxxx")

使用说明 (localStorage, sessionStorage用法相同)

set(key: string, val: any): void;
get<T>(key: string): T;
get<T>(key: string[]): T[];
remove(key: string): void;
clear(): void;

Readme

Keywords

none

Package Sidebar

Install

npm i va-storage

Weekly Downloads

4

Version

1.0.0

License

none

Unpacked Size

215 kB

Total Files

7

Last publish

Collaborators

  • li_mei_chao