-English | [简体中文](https://github.com/GavinBirkhoff/local-store-pro/blob/main/README.zh-CN.md)
+English | [简体中文](https://github.com/GavinBirkhoff/storetify/blob/main/README.zh-CN.md)
The encapsulation of local storage localStorage, provides expiration time setting and subscription functions, provides simple API use, no dependencies, and the compression is only 3.71KB (gzipped: 1.37KB).
@@ -23,13 +23,13 @@ The encapsulation of local storage localStorage, provides expiration time settin
```bash
# npm install
-npm install local-store-pro
+npm install storetify
# yarn install
-yarn add local-store-pro
+yarn add storetify
#pnpm install
-pnpm add local-store-pro
+pnpm add storetify
```
## 🏗️ Build
@@ -46,22 +46,20 @@ npm test
# 🔨 Usage
-or manually download and include in your HTML **local-store-pro.min.js**,you can also pass [UNPKG](https://unpkg.com/local-store-pro/lib/) to download:
+```js
+import store from 'storetify';
+store("test","storetify");
+```
+
+or manually download and include in your HTML **storetify.min.js**,you can also pass [UNPKG](https://unpkg.com/storetify/lib/) to download:
```html
-
+
```
-or
-
-```js
-import store from 'local-store-pro';
-store("test","local-store-pro");
-```
-
## ⚙️ API
### set
@@ -121,7 +119,7 @@ store.subscribe("test",(e)=>{})
For the event variable e, it is an abbreviated object from the StorageEvent object, which provides some practical properties, which can be used to observe the changes of key-value pairs well, as shown in the following table:
```ts
-type NextStorageEventValue = Partial | any[] | null | string | number
+type NextStorageEventValue = Record | any[] | null | string | number
```
| Property | Type | Description|
diff --git a/README.zh-CN.md b/README.zh-CN.md
index f7f8fc2..ce38c58 100644
--- a/README.zh-CN.md
+++ b/README.zh-CN.md
@@ -1,13 +1,13 @@