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 🙏

© 2024 – Pkg Stats / Ryan Hefner

koishi-plugin-get-images-from-local-path

v0.0.11

Published

用于查找、获取本地图片

Downloads

76

Readme

koishi-plugin-get-images-from-local-path

npm

  • 提供指令getpic用于获取本地图片
    • 本指令有一可选变长参数,可传入若干个空格分隔的关键词
    • 若查询结果唯一,则返回图片
    • 若查询结果有多项,则返回符合条件的文件名称,每次返回结果数量的最大值可在配置中修改
    • 若不提供关键词,则随机抽取图片
    • 可在配置中更改关键词中是否允许数字、包含一个字,以及包含后缀名
    • 提供force参数,启用后执行强制查询,无视配置中对关键词的限制
    • 提供fuzzy参数,启用后执行模糊查询,将按照给定关键词中包含的文字计算jaccard系数(主要为以汉字为主的查找考虑),按该系数从大到小排序,返回结果
    • 若启用furtherSearch配置,则在查找结果多于1条时,为查找结果编号
  • 提供指令select用于从查找结果中进一步查找
    • 可在配置中选择开启或关闭,默认开启
    • 若参数为数字,如:select 5,将发出编号为5的图片
    • 若参数为字符串,如:select 自信,将从结果中进一步查找包含“自信”的文件名
    • 查找结果多于1条时,会被保存,供进一步查找
    • 提供force参数,启用后执行强制查询,无视配置中对关键词的限制,此时提供的数字参数也会被作为关键词参与搜索
    • 临时存储的查找结果会在执行getpic指令之初清零;此外,这些结果也会在无后续select操作的2分钟后清零
    • 提供clear参数用于手动清零

更新记录:

  • 0.0.5 添加强制查询,修复了不传入参数时也会错误执行查询的问题。
  • 0.0.6 修复了部分查询与显示的问题,并添加select指令及与之相关的特性。
  • 0.0.7 修复select指令后接编号返回图片错误的问题
  • 0.0.8 添加模糊查找功能,并在配置中添加“允许强制查找”参数
  • 0.0.9 修复了select指令失效的问题