1.1.2 • Published 4 years ago

@wy_fys/my_storage v1.1.2

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

@wy_fys/my_storage

storage加密储存

Installation

npm i @wy_fys/my_storage

Import

vite.config.js内导入

import Storage from "@wy_fys/my_storage";
const storage=new Storage(process.env.NODE_ENV);//区分开发环境和生产环境
app.config.globalProperties.$storage=storage;//全局引用

Using

1、字段使用方法

     let data='这是测试'
     const encryText=this.$storage.encrypt(data);
     console.log('加密',encryText)
     const decryptText=this.$storage.decrypt(encryText)
     console.log(decryptText)
1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago