open-index/open-npm huggingface dataset:
npm package: @minipx/gatsby-remark-toc
Description: <p align="center">   <a href="https://next.gatsbyjs.org">     <img alt="Gatsby" src="https://www.gatsbyjs.org/monogram.svg" width="60" />   </a> </p> <h1 align="center">   gatsby-remark-toc </h1>
Author: Dustin Schau
Latest version: 1.1.0

<p align="center">
  <a href="https://next.gatsbyjs.org">
    <img alt="Gatsby" src="https://www.gatsbyjs.org/monogram.svg" width="60" />
  </a>
</p>
<h1 align="center">
  gatsby-remark-toc
</h1>

<h3 align="center">
  ⚛️ 📄 :rocket:
</h3>
<p align="center">
  <strong>Adds a table of contents to Markdown files using <a href="https://www.npmjs.com/package/mdast-util-toc">mdast-util-toc</a></strong>
</p>
<p align="center">
  <a href="https://travis-ci.org/DSchau/gatsby-remark-toc">
    <img src="https://travis-ci.org/DSchau/gatsby-remark-toc.svg?branch=master" alt="Current TravisCI build status." />
  </a>
  <a href="https://www.npmjs.org/package/gatsby">
    <img src="https://img.shields.io/npm/v/gatsby-remark-toc.svg?style=flat-square" alt="Current npm package version." />
  </a>
  <a href="https://npmcharts.com/compare/gatsby-remark-toc?minimal=true">
    <img src="https://img.shields.io/npm/dm/gatsby-remark-toc.svg" alt="Downloads per month on npm." />
  </a>
</p>

## 🚀 Install

`npm install gatsby-remark-toc --save`

## 🎓 How to use

```js
// in your gatsby-config.js
plugins: [
  {
    resolve: 'gatsby-transformer-remark',
    options: {
      plugins: [
        {
          resolve: 'gatsby-remark-toc',
          options: {
            header: 'Table of Contents', // the custom header text
            include: [
              'content/**/*.md' // an include glob to match against
            ]
          }
        }
      ]
    }
  }
];
```

additionally, you can pass custom options directly to [mdast-util-toc][mdast-util-toc] like so:

```js
// in your gatsby-config.js
plugins: [
  {
    resolve: 'gatsby-transformer-remark',
    options: {
      plugins: [
        {
          resolve: 'gatsby-remark-toc',
          options: {
            header: 'Table of Contents', // the custom header text
            include: [
              'content/**/*.md' // an include glob to match against
            ],
            mdastUtilTocOptions: {
              maxDepth: 2
            }
          }
        }
      ]
    }
  }
];
```

[mdast-util-toc]: https://www.npmjs.com/package/mdast-util-toc
npm package: @minipx/tracer
Description: Tracer SDK for weixin mini game.
Author: crossjs
Latest version: 1.0.4

# 渠道跟踪插件

## 1 SDK 资源

### 1.1 NPM

- [@minipx/tracer](https://www.npmjs.com/package/@minipx/tracer)

### 1.2 独立文件

- [tracer.umd.js](tracer.umd.js)
- [tracer.iife.js](tracer.iife.js)

## 2 接入说明

### 2.1 第一步：引入 SDK

可以使用 NPM

```bash
npm i --save @minipx/tracer
```

也可以直接将上述的独立文件（根据实际需要选择一款即可）拷贝到项目内

### 2.2 第二步：使用 SDK

以下根据自己偏好选择一种

#### 2.2.1 使用 ES6 语法

```js
import Tracer from '@minipx/tracer';
// 或者：
// import Tracer from './path/to/tracer.umd';

// 在获取到用户信息后调用，如果没有用户信息，则第二个参数填可不填
Tracer.trace('<当前小游戏的 appId>', '<当前登录用户的 openId>');
```

#### 2.2.2 使用 ES5 语法

```js
const Tracer = require('@minipx/tracer');
// 或者：
// const Tracer = require('./path/to/tracer.umd');

// 在获取到用户信息后调用，如果没有用户信息，则第二个参数填可不填
Tracer.trace('<当前小游戏的 appId>', '<当前登录用户的 openId>');
```

### 2.3 第三步：配置 request 合法域名

在微信小游戏的开发者后台，配置 request 合法域名

```bash
https://log.minipx.cn
```

## 3 投放说明

小游戏数据监控参数格式要求：

```bash
?channel=yyw<任意字符>&自定义参数1=<任意字符>&自定义参数2=<任意字符>
```

`channel` 参数必填，其它根据 CP 要求任意定制。

参考：[⼩游戏⼴告数据监控指引](https://www.tapd.cn/66547094/documents/show/1166547094001000090?file_type=pdf&file_ext=pdf)
npm package: @miniql/csv
Description: A MiniQL query resolver that loads data from CSV files.
Author: ashley@codecapers.com.au
Latest version: 0.0.6

# @miniql/csv

A [MiniQL](https://github.com/miniql/miniql) query resolver that loads data from CSV files.

Any problems? Please log an issue on this repo.

Love this? Please [star the repo](https://github.com/miniql/miniql) and [follow the developer on Twitter](https://twitter.com/ashleydavis75).

## Example

Find a complete and working Node.js example of using MiniQL with a CSV file dataset here:

https://github.com/miniql/miniql-csv-example

## Using it

Install the modules in your Node.js project:

```bash
npm install --save miniql
npm install --save @miniql/csv
```

Import the modules (JavaScript):

```javascript
const { miniql } = require("miniql");
const { createQueryResolver } = require("@miniql/csv");
```

Import the modules (TypeScript):

```typescript
import { miniql } from "miniql";
import { createQueryResolver } from "@miniql/csv";
```

Configure and create the CSV files query resolver:

```javascript
    //
    // Configures CSV files to be loaded and how they relate to each other.
    //
    const csvFilesConfig = {
        species: {
            primaryKey: "name",
            csvFilePath: "./data/species.csv",
            nested: {
                homeworld: {
                    parentKey: "homeworld",
                    from: "planet",
                },
            },
        },
        planet: {
            primaryKey: "name",
            csvFilePath: "./data/planets.csv",
            nested: {
                species: {
                    foreignKey: "homeworld",
                },
            },
        },
    };
    
    // 
    // Loads CSV files and creates a MiniQL query resolver.
    //
    const queryResolver = await createQueryResolver(csvFilesConfig);
```

Now you can make queries against the dataset, for example:

```javascript
    const query = {
        get: {
            species: { // Query for "species" entity.

                // No arguments gets all entities.

                resolve: {
                    homeworld: { // Resolves the homeworld of each species as a nested lookup.
                    },
                }
            },
        },
    };

    // Invokes MiniQL.
    const result = await miniql(query, queryResolver, {});  

    // Displays the query result.
    console.log(JSON.stringify(result, null, 4));
```

Please see [MiniQL](https://github.com/miniql/miniql) for more information on how to make queries.

Don't forget to [star the repo](https://github.com/miniql/miniql) and [follow the developer on Twitter](https://twitter.com/ashleydavis75).
npm package: @miniql/json
Description: A MiniQL query resolver that loads data from JSON files.
Author: ashley@codecapers.com.au
Latest version: 0.0.3

# @miniql/csv

A [MiniQL](https://github.com/miniql/miniql) query resolver that loads data from CSV files.

Any problems? Please log an issue on this repo.

Love this? Please [star the repo](https://github.com/miniql/miniql) and [follow the developer on Twitter](https://twitter.com/ashleydavis75).

## Example

Find a complete and working Node.js example of using MiniQL with a CSV file dataset here:

https://github.com/miniql/miniql-csv-example

## Using it

Install the modules in your Node.js project:

```bash
npm install --save miniql
npm install --save @miniql/csv
```

Import the modules (JavaScript):

```javascript
const { miniql } = require("miniql");
const { createQueryResolver } = require("@miniql/csv");
```

Import the modules (TypeScript):

```typescript
import { miniql } from "miniql";
import { createQueryResolver } from "@miniql/csv";
```

Configure and create the CSV files query resolver:

```javascript
    //
    // Configures CSV files to be loaded and how they relate to each other.
    //
    const csvFilesConfig = {
        species: {
            primaryKey: "name",
            csvFilePath: "./data/species.csv",
            nested: {
                homeworld: {
                    parentKey: "homeworld",
                    from: "planet",
                },
            },
        },
        planet: {
            primaryKey: "name",
            csvFilePath: "./data/planets.csv",
            nested: {
                species: {
                    foreignKey: "homeworld",
                },
            },
        },
    };
    
    // 
    // Loads CSV files and creates a MiniQL query resolver.
    //
    const queryResolver = await createQueryResolver(csvFilesConfig);
```

Now you can make queries against the dataset, for example:

```javascript
    const query = {
        get: {
            species: { // Query for "species" entity.
            
                // No arguments gets all entities.

                resolve: {
                    homeworld: { // Resolves the homeworld of each species as a nested lookup.
                    },
                }
            },
        },
    };

    // Invokes MiniQL.
    const result = await miniql(query, queryResolver, {});  

    // Displays the query result.
    console.log(JSON.stringify(result, null, 4));
```

Please see [MiniQL](https://github.com/miniql/miniql) for more information on how to make queries.

Don't forget to [star the repo](https://github.com/miniql/miniql) and [follow the developer on Twitter](https://twitter.com/ashleydavis75).
npm package: @minirom/photo-viewer
Description: Photos viewer
Author: minirom
Latest version: 1.2.0

# photo-viewer

## Project setup
```
yarn install
```

### Compiles and hot-reloads for development
```
yarn serve
```

### Compiles and minifies for production
```
yarn build
```

### Run your unit tests
```
yarn test:unit
```

### Lints and fixes files
```
yarn lint
```

### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).
npm package: @minisheeep/mp-three-examples
Description: three.js examples for mini-program
Author: minisheep
Latest version: 1.0.6

# Three.js Platform Adapter 小程序使用到的 three.js 相关示例源码

> 包含了 [three.js 官方](https://threejs.org/examples), [Tres.js](https://docs.tresjs.org/guide/) , [React Three Fiber](https://r3f.docs.pmnd.rs/getting-started/examples) 三部分示例

## 微信小程序

小程序详情可扫码查看
<img src="./public/mp-wechat1.png" width="300" alt="mp-wechat"/>
npm package: @minissg/render-preact
Description: Preact plugin for Minissg
Latest version: 3.0.3

# @minissg/render-preact

A renderer plugin for combining [Minissg] with [Preact].

See [Minissg's README] for details.

## License

MIT

[Minissg]: https://github.com/uenoB/minissg
[Preact]: https://preactjs.com
[Minissg's README]: https://github.com/uenoB/minissg/tree/main/packages/vite-plugin-minissg#readme
npm package: @minissg/render-react
Description: Preact plugin for Minissg
Latest version: 3.0.3

# @minissg/render-react

A renderer plugin for combining [Minissg] with [React].

See [Minissg's README] for details.

## License

MIT

[Minissg]: https://github.com/uenoB/minissg
[React]: https://react.dev
[Minissg's README]: https://github.com/uenoB/minissg/tree/main/packages/vite-plugin-minissg#readme
npm package: @minissg/render-solid
Description: Preact plugin for Minissg
Latest version: 4.0.3

# @minissg/render-solid

A renderer plugin for combining [Minissg] with [Solid.js].

See [Minissg's README] for details.

## `hydrate` query arguments

`?hydrate` query may have a `without-script` parameter.
To enable hydration, Solid.js requires to insert a hydration script into
a webpage.
@minissg/render-solid do so.
If you would like to avoid this insertion for some reason,
write `?hydrate=without-script` instead of `?hydrate`.

## License

MIT

[Minissg]: https://github.com/uenoB/minissg
[Solid.js]: https://www.solidjs.com
[Minissg's README]: https://github.com/uenoB/minissg/tree/main/packages/vite-plugin-minissg#readme
npm package: @minissg/render-svelte
Description: Preact plugin for Minissg
Latest version: 4.0.2

# @minissg/render-svelte

A renderer plugin for combining [Minissg] with [Svelte].

See [Minissg's README] for details.

## License

MIT

[Minissg]: https://github.com/uenoB/minissg
[Svelte]: https://svelte.dev
[Minissg's README]: https://github.com/uenoB/minissg/tree/main/packages/vite-plugin-minissg#readme
npm package: @minissg/render-vue
Description: Preact plugin for Minissg
Latest version: 3.0.3

# @minissg/render-vue

A renderer plugin for combining [Minissg] with [Vue].

See [Minissg's README] for details.

## License

MIT

[Minissg]: https://github.com/uenoB/minissg
[Vue]: https://vuejs.org
[Minissg's README]: https://github.com/uenoB/minissg/tree/main/packages/vite-plugin-minissg#readme
npm package: @minisss/cron
Description: crontab 语法 JavaScript 定时任务执行库
Author: minisss
Latest version: 0.0.1-alpha.7

# cron

crontab 语法 JavaScript 定时任务执行库

- 🤡 支持广泛浏览器
- 🤡 无依赖包
- ✅ 新增 x#\* 语法 当月每周星期x支持(写法: 2#\* 当月每周星期2)
- ✅ 支持秒级

## 安装方式

```bash
# pnpm
pnpm i @minisss/cron

# yarn
yarn add @minisss/cron

# npm
npm i @minisss/cron

# bun
bun install @minisss/cron
```

## 使用方式

## cron 语法

```js
 # ┌────────────── second (可选)
 # │ ┌──────────── minute
 # │ │ ┌────────── hour
 # │ │ │ ┌──────── day of month
 # │ │ │ │ ┌────── month
 # │ │ │ │ │ ┌──── day of week
 # │ │ │ │ │ │
 # │ │ │ │ │ │
 # * * * * * *
```

## cron 时间字段

| 字段   | 描述                   | 取值 | 特殊字符        |
| ------ | ---------------------- | ---- | --------------- |
| week   | 星期几(0或7代表星期天) | 0-7  | `* , - / ? L #` |
| month  | 月份                   | 1-12 | `* , - /`       |
| day    | 日期(日/每月第几天)    | 1-31 | `* , - / ? L W` |
| hour   | 小时                   | 0-23 | `* , - /`       |
| minute | 分钟                   | 0-59 | `* , - /`       |
| second | 秒数(可选)             | 0-59 | `* , - /`       |

## cron 特殊字符

- `*`：表示当前字段域所有取值
- `,`：指定多个值，例如 1,3,5 表示第 1、3、5 个值。
- `-`：指定范围，例如 1-5 表示第 1 到第 5 个值。
- `/`：指定步长，例如 \*/5 表示每 5 个值。
- `?`：表示不指定，用于日期和星期字段。
- `L`：表示最后一个，例如 day L 每月的最后一天，week xL 表示每月的最后一个星期x。
- `W`：表示工作日。例如 xW代表x日最近的工作日。 LW代表最后一个工作日。
- `#`：表示指定星期几，例如 1#3 表示第三个星期一, 1#\* 表示当月每周星期1。

## API

| 方法 | 描述             | 参数                            | 返回值 |
| ---- | ---------------- | ------------------------------- | ------ |
| add  | 添加一个定时任务 | add(cronExpression, task, conf) | ITask  |

## ITask

| 方法 | 描述         | 参数   | 返回值            |
| ---- | ------------ | ------ | ----------------- |
| stop | 停止定时任务 | stop() | 当前任务实例 this |

## CONF配置项

| 参数         | 描述                 | 类型    | 默认值 |
| ------------ | -------------------- | ------- | ------ |
| isDayWeekAnd | 日期与周 逻辑与 关系 | boolean | false  |
npm package: @minisss/is
Description: Small and Beautiful JS Type Judgment Method Library
Author: minisss
Latest version: 0.0.1

# mini-is

小而美的 JS 类型判断方法库 - Small and Beautiful JS Type Judgment Method Library

## 单元测试覆盖率

```js
----------|---------|----------|---------|---------|-------------------
File      | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
----------|---------|----------|---------|---------|-------------------
All files |     100 |      100 |     100 |     100 |
 index.ts |     100 |      100 |     100 |     100 |
----------|---------|----------|---------|---------|-------------------
Test Suites: 1 passed, 1 total
Tests:       17 passed, 17 total
Snapshots:   0 total
Time:        0.261 s, estimated 1 s
Ran all test suites.
```

## Installation

```bash
# pnpm
pnpm i mini-is

# yarn
yarn add mini-is

# npm
npm install mini-is

# bun
bun install mini-is
```

## 使用方法

```js
// ESM xxx.js
import { isString } from 'mini-is';
console.log(isString('hello'));

// CJS xxx.js
const { isString } = require('mini-is');
console.log(isString('hello'));

// script type module 模块化内部引入方式
<script type="module">
  import * as MiniIs from "https://unpkg.com/@minisss/is@0.0.1/dist/index.esm.js";
  console.log("MiniIs 包对象: ", MiniIs);
  console.log("MiniIs.isString('11') 结果: ", MiniIs.isString("11"));
</script>

// script 普通 script 直接导入 -> 访问全局变量 MiniIs
<script src="https://unpkg.com/@minisss/is@0.0.1"></script>
<script>
console.log(MiniIs)
</script>

```

## License

MIT
npm package: @minisss/localstorage
Description: A Window localStorage Manager Lib
Author: minisss
Latest version: 1.0.5

# @minisss/localstorage

@minisss/localstorage 是一个专为浏览器环境设计的轻量级本地存储库，旨在简化对 localStorage 的操作，同时提供丰富的功能和更好的开发体验。

- ✅ 支持对象存储
- ✅ 支持过期机制
- ✅ 自定义前缀
- ✅ 友好的 TS 类型提示(全局定义 IMSLocalStorageData 定义即可)
- ✅ 支持 ESM CJS UMD
- 🤡 支持广泛浏览器

## 安装方式

```bash
# pnpm
pnpm i @minisss/localstorage

# yarn
yarn add @minisss/localstorage

# npm
npm install @minisss/localstorage

# bun
bun install @minisss/localstorage
```

## 使用方式

### ESM

```js
import MLS from "@minisss/localstorage";
MLS.set("key", "val");
console.log(MLS.get("key"));
```

### CJS

```js
const MLS = require("@minisss/localstorage");
MLS.set("key", "val");
console.log(MLS.get("key"));
```

### UMD xxx.html 普通 script 直接导入 -> 访问全局变量 MLS

```html
// UMD
<script src="https://unpkg.com/@minisss/localstorage@1.0.5"></script>
<script>
  console.log("MLS 包对象: ", MLS) MLS.set('key', 'val');
  console.log(MLS.get('key')) console.log(MLS.has('key'));
</script>
```

### UMD xxx.html script type module 模块化内部引入方式

```html
<script type="module">
  import MLS from "https://unpkg.com/@minisss/localstorage@1.0.5/out/index.esm.js";
  console.log("MLS 包对象: ", MLS) MLS.set('key', 'val');
  console.log(MLS.get('key')) console.log(MLS.del('key'));
  console.log(MLS.has('key'));
</script>
```

## API 及实例对象(实例对象无 create 方法)

| 名称      | 描述           | 参数                                     | 返回值    |
| --------- | -------------- | ---------------------------------------- | --------- |
| VERSION   | 版本信息       |                                          | string    |
| length    | 据项数量       |                                          | number    |
| isSupport | 是否支持       |                                          | boolean   |
| key       | 获取 key       | key(idx:number)                          | any       |
| get       | 获取           | get(key:string, config?:Config)          | any       |
| set       | 设置           | set(key:string, val:any, config?:Config) | undefined |
| del       | 删除           | del(key:string, config?:Config)          | undefined |
| clear     | 清除本地数据   | clear()                                  | undefined |
| has       | 判断           | has(key:string, config?:Config)          | boolean   |
| create    | 创建实例(推荐) | create(config?:Config)                   | 实例对象  |

## Config

| 名称    | 描述                         | 数据类型 | 默认值    |
| ------- | ---------------------------- | -------- | --------- |
| expires | 过期时间(maxAge会覆盖此参数) | Date     | undefined |
| maxAge  | 过期时间，单位为秒           | number   | undefined |
| prefix  | 自定义 key 前缀              | string   | ''        |

## 覆写 IMSLocalStorageData 类型接口y已支持 TS 类型提示(可选)

```js
// 例如: 在 types/xxx.d.ts | global.d.ts 或某个 .d.ts 文件中定义 IMSLocalStorageData 类型接口
interface IMSLocalStorageData {
  name:string
  age:number
}
// 将 types/xxx.d.ts 加入到 tsconfig.json includes 中即可获得自定义类型提示功能
```
npm package: @minisss/reset-css
Description: 根据 MDN 的 HTML 元素标签规范，对标签样式进行重置，以确保在各个浏览器中实现一致的显示效果。
Author: minisss
Latest version: 1.0.2

# @minisss/reset-css

根据 MDN 的 HTML 元素标签规范，对标签样式进行重置，以确保在各个浏览器中实现一致的显示效果。

## 安装方式

```base
# pnpm
pnpm i @minisss/reset-css

# yarn
yarn add @minisss/reset-css

# npm
npm install @minisss/reset-css

# bun
bun install @minisss/reset-css
```

## 示例

```js
# Next.js 项目 _app.(jsx|tsx) 入口文件
import "@minisss/reset-css"

# 其它项目入口文件
import "@minisss/reset.css"
```

## Blessing

🥰 献给所有追求简洁与规范代码的开发者，愿我们的代码如诗般优雅，逻辑清晰，易于维护。

## License

MIT
npm package: @minisss/reset.css
Description: init browser default style
Author: minisss
Latest version: 1.0.2

# @minisss/reset.css

根据 MDN 的 HTML 元素标签规范，对标签样式进行重置，以确保在各个浏览器中实现一致的显示效果。

## 安装方式

```base
# pnpm
pnpm i @minisss/reset.css

# yarn
yarn add @minisss/reset.css

# npm
npm install @minisss/reset.css

# bun
bun install @minisss/reset.css
```

## 示例

```js
# Next.js 项目 _app.(jsx|tsx) 入口文件
import "@minisss/reset.css"

# 其它项目入口文件
import "@minisss/reset.css"
```

## License

MIT
npm package: @minisss/sessionstorage
Description: A Window sessionstorage Manager Lib
Author: minisss
Latest version: 1.0.0

# @minisss/sessionstorage

@minisss/sessionstorage 是一个专为浏览器环境设计的轻量级本地存储库，旨在简化对 sessionstorage 的操作，同时提供丰富的功能和更好的开发体验。

- ✅ 支持对象存储
- ✅ 支持过期机制
- ✅ 自定义前缀
- ✅ 友好的 TS 类型提示(全局定义 IMSSessionStorageData 定义即可)
- ✅ 支持 ESM CJS UMD
- 🤡 支持广泛浏览器

## 安装方式

```bash
# pnpm
pnpm i @minisss/sessionstorage

# yarn
yarn add @minisss/sessionstorage

# npm
npm install @minisss/sessionstorage

# bun
bun install @minisss/sessionstorage
```

## 使用方式

### ESM

```js
import MLS from "@minisss/sessionstorage";
MLS.set("key", "val");
console.log(MLS.get("key"));
```

### CJS

```js
const MLS = require("@minisss/sessionstorage");
MLS.set("key", "val");
console.log(MLS.get("key"));
```

### UMD xxx.html 普通 script 直接导入 -> 访问全局变量 MLS

```html
// UMD
<script src="https://unpkg.com/@minisss/sessionstorage@1.0.5"></script>
<script>
  console.log("MLS 包对象: ", MLS) MLS.set('key', 'val');
  console.log(MLS.get('key')) console.log(MLS.has('key'));
</script>
```

### UMD xxx.html script type module 模块化内部引入方式

```html
<script type="module">
  import MLS from "https://unpkg.com/@minisss/sessionstorage@1.0.5/out/index.esm.js";
  console.log("MLS 包对象: ", MLS) MLS.set('key', 'val');
  console.log(MLS.get('key')) console.log(MLS.del('key'));
  console.log(MLS.has('key'));
</script>
```

## API 及实例对象(实例对象无 create 方法)

| 名称      | 描述           | 参数                                     | 返回值    |
| --------- | -------------- | ---------------------------------------- | --------- |
| VERSION   | 版本信息       |                                          | string    |
| length    | 据项数量       |                                          | number    |
| isSupport | 是否支持       |                                          | boolean   |
| key       | 获取 key       | key(idx:number)                          | any       |
| get       | 获取           | get(key:string, config?:Config)          | any       |
| set       | 设置           | set(key:string, val:any, config?:Config) | undefined |
| del       | 删除           | del(key:string, config?:Config)          | undefined |
| clear     | 清除本地数据   | clear()                                  | undefined |
| has       | 判断           | has(key:string, config?:Config)          | boolean   |
| create    | 创建实例(推荐) | create(config?:Config)                   | 实例对象  |

## Config

| 名称    | 描述                         | 数据类型 | 默认值    |
| ------- | ---------------------------- | -------- | --------- |
| maxAge  | 过期时间，单位为秒           | number   | undefined |
| expires | 过期时间(maxAge会覆盖此参数) | Date     | undefined |
| prefix  | 自定义 key 前缀              | string   | ''        |

## 覆写 IMSSessionStorageData 类型接口y已支持 TS 类型提示(可选)

```js
// 例如: 在 types/xxx.d.ts | global.d.ts 或某个 .d.ts 文件中定义 IMSSessionStorageData 类型接口
interface IMSSessionStorageData {
  name:string
  age:number
}
// 将 types/xxx.d.ts 加入到 tsconfig.json includes 中即可获得自定义类型提示功能
```