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 🙏

© 2025 – Pkg Stats / Ryan Hefner

koishi-plugin-ignore-space

v1.4.0

Published

忽略特定指令与特定参数之间的空格,可配置对于艾特和引用内容的处理

Readme

koishi-plugin-ignore-space

npm

忽略特定指令与特定参数之间的空格,可配置对于艾特和引用内容的处理

功能特点

  • 自动清理命令和参数之间的空格
  • 可选择是否忽略消息开头的 @ 标记
  • 可选择是否忽略引用内容
  • 支持命令白名单和黑名单配置
  • 智能识别命令前缀

配置项

export interface Config {
  // 是否忽略消息开头@前缀,默认为 true
  ignoreAt: boolean
  // 是否忽略引用内容,默认为 true
  ignoreQuote: boolean
  // 进行忽略处理的命令列表,默认为 ['help']
  whitelist: string[]
  // 无需处理的完整命令参数列表,默认为 ['help-H']
  blacklist: string[]
}

工作原理

  1. 插件会自动识别并处理消息中的以下内容:

    • 命令前缀(包括自定义前缀和昵称)
    • @ 标记(可配置是否忽略)
    • 引用内容(可配置是否忽略)
    • 命令和参数之间的空格
  2. 处理流程:

    • 清理消息前后的空格
    • 根据配置移除 @ 标记
    • 识别并处理命令前缀
    • 检查命令是否在黑白名单中
    • 重新组装并执行处理后的命令

注意事项

  • 只有在白名单中的命令或匹配黑名单的完整命令才会进行处理
  • 支持带有 at 标签的复杂命令格式
  • 插件会保持引用内容的完整性(除非配置 ignoreQuote 为 false)