{"url":"https://levimc.org/mods/github.com/lgc-LLSEDev/FormAPIEx/","id":"github.com/lgc-LLSEDev/FormAPIEx","name":"FormAPIEx","description":"让处理表单返回值变得更容易！","owner":"lgc-LLDev","logo":"https://levimc.org/mods/icons/9cbb4c9299345e98-288.webp","repository":"https://github.com/lgc-LLDev/FormAPIEx","issues":"https://github.com/lgc-LLDev/FormAPIEx/issues","releases":"https://github.com/lgc-LLDev/FormAPIEx/releases","stars":2,"downloads":25,"updated":"2025-01-20T18:34:24Z","published":"2023-03-09T07:35:07Z","created":"2023-03-08T06:00:59Z","license":"Apache-2.0","side":["server","client"],"platform":["win-x64"],"gameVersions":[],"tags":[],"latest":{"variant":"","version":"0.3.1","install":"lip install github.com/lgc-LLSEDev/FormAPIEx@0.3.1"},"readmes":[{"file":"readme.md","lang":"zh-Hans","text":"<!-- markdownlint-disable MD033 -->\n\n# FormAPIEx\n\n让处理表单返回值变得更容易！\n\n需要已编译好的版本？去看看 [Releases](https://github.com/lgc-LLSEDev/FormAPIEx/releases) 吧！\n\n## 介绍\n\n本工具库提供了一些类以及函数，可以让各位更方便地处理表单返回值，不用再为需要自己处理表单按钮的 ID 而烦恼了！  \n它甚至可以直接让你不需要写太多代码即可发送一个可以翻页以及搜索的列表！  \n快来使用吧~\n\n本工具库几乎全部使用异步语法编写，详细内容可以直接看下方的示例代码\n\n## 示例\n\n见 [example.js](https://github.com/lgc-LLSEDev/FormAPIEx/blob/master/example.js)\n\n## 引用\n\n### QuickJS\n\n- 将编译好的 `FormAPIEx.js` 扔进 BDS 目录的 `plugins/lib` 文件夹中，之后使用下面的代码来导入\n\n  ```js\n  // 可以接着导入其他本库已经导出的函数，类等\n  const { CustomFormEx } = require('./lib/FormAPIEx');\n  ```\n\n  如果你使用的是 TypeScript，那么我更推荐你使用模块语法导入\n\n  ```ts\n  // 可以接着导入其他本库已经导出的函数，类，接口等\n  import { CustomFormEx } from './lib/FormAPIEx';\n  ```\n\n### NodeJS\n\n- 引用 `form-api-ex` npm 包\n\n  - 先将本包加入你项目的依赖项中\n\n    推荐使用 `pnpm` 管理项目依赖  \n    下面的命令假设你已经安装了 `pnpm`，如果你没有安装，可以往上翻翻看看如何安装，也可以换用其他包管理器  \n    使用下面的命令将本包添加到你项目的依赖项中\n\n    ```bash\n    pnpm i form-api-ex\n    ```\n\n  - 然后使用下面的语法导入\n\n    ```js\n    // 可以接着导入其他本库已经导出的函数，类等\n    const { CustomFormEx } = require('form-api-ex');\n    ```\n\n    如果你使用的是 TypeScript，那么我更推荐你使用模块语法导入\n\n    ```ts\n    // 可以接着导入其他本库已经导出的函数，类，接口等\n    import { CustomFormEx } from 'form-api-ex';\n    ```\n\n## 联系我\n\nQQ：3076823485  \n吹水群：[1105946125](https://jq.qq.com/?_wv=1027&k=Z3n1MpEp)  \n邮箱：<lgc2333@126.com>\n\n## 赞助\n\n感谢大家的赞助！你们的赞助将是我继续创作的动力！\n\n- [爱发电](https://afdian.net/@lgc2333)\n- <details>\n    <summary>赞助二维码（点击展开）</summary>\n\n  ![讨饭](https://raw.githubusercontent.com/lgc2333/ShigureBotMenu/master/src/imgs/sponsor.png)\n\n  </details>\n\n## 更新日志\n\n### 0.3.1\n\n- 小调整\n\n### 0.3.0\n\n- 拆分为多文件，使用 `rollup` 编译为单文件\n- 导出一些工具函数\n- 加上注释\n\n### 0.2.2\n\n- 修改元信息\n\n### 0.2.1\n\n- 修改一些类型上的细节\n\n### 0.2.0\n\n- 支持操作 `CustomFormEx` 中的表单元素\n\n### 0.1.1\n\n- 修复一些细节问题\n"}],"gallery":[],"versions":[{"version":"0.3.1","prerelease":false,"released":"2023-04-20T05:22:22Z","releaseUrl":"https://github.com/lgc-LLDev/FormAPIEx/releases/tag/v0.3.1","manifestUrl":"https://github.com/lgc-LLDev/FormAPIEx/blob/v0.3.1/tooth.json","info":{"name":"FormAPIEx","description":"让处理表单返回值变得更容易！","tags":[]},"variants":{"":[{"side":"server","platform":"win-x64","deps":{}},{"side":"client","platform":"win-x64","deps":{}}]}},{"version":"0.3.0","prerelease":false,"released":"2023-04-20T04:55:29Z","releaseUrl":"https://github.com/lgc-LLDev/FormAPIEx/releases/tag/v0.3.0","manifestUrl":"https://github.com/lgc-LLDev/FormAPIEx/blob/v0.3.0/tooth.json","info":{"name":"FormAPIEx","description":"让处理表单返回值变得更容易！","tags":[]},"variants":{"":[{"side":"server","platform":"win-x64","deps":{}},{"side":"client","platform":"win-x64","deps":{}}]}},{"version":"0.2.2","prerelease":false,"released":"2023-03-09T07:35:07Z","releaseUrl":"https://github.com/lgc-LLDev/FormAPIEx/releases/tag/v0.2.2","manifestUrl":"https://github.com/lgc-LLDev/FormAPIEx/blob/v0.2.2/tooth.json","info":{"name":"FormAPIEx","description":"让处理表单返回值变得更容易！","tags":[]},"variants":{"":[{"side":"server","platform":"win-x64","deps":{}},{"side":"client","platform":"win-x64","deps":{}}]}}],"dependencies":{},"requiredBy":[]}