npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

form-api-ex

v0.5.2

Published

Work with LLSE forms easily!

Readme

FormAPIEx

让处理表单返回值变得更容易!

介绍

本工具库提供了一些类以及函数,可以让各位更方便地处理表单返回值,不用再为需要自己处理表单按钮的 ID 而烦恼了!
它甚至可以直接让你不需要写太多代码即可发送一个可以翻页以及搜索的列表!
快来使用吧~

本工具库几乎全部使用异步语法编写,详细内容可以直接看下方的示例代码

示例

FormAPIExample.js

引用

LL3 - QuickJS

  • 将本仓库作为 Lip 包安装到 BDS 的插件目录:

    lip install github.com/lgc-LLDev/FormAPIEx

    或者作为你插件的依赖:

    // tooth.json
    {
      // ...
      "dependencies": {
        "github.com/lgc-LLDev/FormAPIEx": ">0.0.0" // 自行修改依赖版本
        // ...
      }
      // ...
    }
  • 之后使用 require 导入(没有试过能不能用 ES6 语法,可以自行尝试):

    // 可以接着导入其他本库已经导出的函数,类等
    const { CustomFormEx } = require('./FormAPIEx');

LL3 - Rollup

参见下方 LL2 - NodeJS 的用法

LL2 - QuickJS

  • 将编译好的 FormAPIEx.js 扔进 BDS 目录的 plugins/lib 文件夹中,之后使用下面的代码来导入

    如果你使用的是 TypeScript,那么我更推荐你使用模块语法导入

    // 可以接着导入其他本库已经导出的函数,类,接口等
    import { CustomFormEx } from './lib/FormAPIEx';

LL2 - NodeJS

引用 form-api-ex npm 包

  • 先将本包加入你项目的依赖项中

    推荐使用 pnpm 管理项目依赖
    下面的命令假设你已经安装了 pnpm,如果你没有安装,可以往上翻翻看看如何安装,也可以换用其他包管理器
    使用下面的命令将本包添加到你项目的依赖项中

    pnpm i form-api-ex
  • 然后使用下面的语法导入

    // 可以接着导入其他本库已经导出的函数,类等
    const { CustomFormEx } = require('form-api-ex');

    如果你使用的是 TypeScript,那么我更推荐你使用模块语法导入

    // 可以接着导入其他本库已经导出的函数,类,接口等
    import { CustomFormEx } from 'form-api-ex';

联系我

QQ:3076823485
吹水群:1105946125
邮箱:[email protected]

赞助

感谢大家的赞助!你们的赞助将是我继续创作的动力!

更新日志

0.5.2

  • 修改 SimpleFormEx 的默认 searcher 使搜索结果按权重排列
  • 修改 formatError 函数使其显示错误信息

0.5.1

  • 修复 SimpleFormOperationaltitlecontent 不生效的 Bug

0.5.0

  • 使用 FormClose 表示玩家手动关闭表单或表单发送失败

0.4.2 (0.4.1)

  • 修复 SimpleFormEx 的默认 searcher 的一些问题

0.4.0

  • 新增 SimpleFormOperational

0.3.1

  • 小调整

0.3.0

  • 拆分为多文件,使用 rollup 编译为单文件
  • 导出一些工具函数
  • 加上注释

0.2.2

  • 修改元信息

0.2.1

  • 修改一些类型上的细节

0.2.0

  • 支持操作 CustomFormEx 中的表单元素

0.1.1

  • 修复一些细节问题