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

@summonhim/koishi-plugin-bili-parser

v1.1.1

Published

A koishi plugin use to parse bilibili links.

Downloads

202

Readme

@summonhim/koishi-plugin-bili-parser

npm

A koishi plugin use to parse bilibili links.

一个能够解析 BiliBili 链接的 Koishi 插件。

Usage/使用方法

Video/视频

When regex match bilibili\.com\/video\/([ab]v[0-9a-zA-Z]+), reply

当正则表达式符合 bilibili\.com\/video\/([ab]v[0-9a-zA-Z]+),回复

标题
![图片](图片链接)
UP主:${name}
介绍
点赞:${like}	投币:${coin}
收藏:${fav}	转发:${stat}
观看:${views}	弹幕:${danmaku}
https://www.bilibili.com/video/${id}

Live/直播

When regex match live\.bilibili\.com(?:\/h5)?\/(\d+), reply

当正则表达式符合 live\.bilibili\.com(?:\/h5)?\/(\d+),回复

标题
![图片](图片链接)
介绍
观看:${online}	关注:${attention}
https://live.bilibili.com/${id}

Bangumi/番剧

When regex match bilibili\.com\/bangumi\/play\/((ep|ss)(\d+)), bilibili\.com\/bangumi\/media\/(md(\d+)), reply

当正则表达式符合 bilibili\.com\/bangumi\/play\/((ep|ss)(\d+))bilibili\.com\/bangumi\/media\/(md(\d+)),回复

标题(${score}分)
![图片](图片链接)
第 ${title} 话 - ${long_title}
介绍
点赞:${likes}		投币:${coins}
追番:${favs}		转发:${stat}
播放:${views}		弹幕:${danmakus}
https://www.bilibili.com/bangumi/play/ep${id}

Article/专栏

When regex match bilibili\.com\/read\/cv(\d+), bilibili\.com\/read\/mobile(?:\?id=|\/)(\d+), reply

当正则表达式符合 bilibili\.com\/read\/cv(\d+)bilibili\.com\/read\/mobile(?:\?id=|\/)(\d+),回复

标题
![图片](图片链接)
UP主:作者名称
点赞:${like}	投币:${coin}
收藏:${fav}	转发:${stat}
https://www.bilibili.com/read/cv${id}

Audio/音乐

When regex match bilibili\.com\/audio\/au(\d+), reply

当正则表达式符合 bilibili\.com\/audio\/au(\d+),回复

标题
![图片](图片链接)
UP主:${up}		歌手:${author}
播放:${play}	投币:${coin}
收藏:${fav}	转发:${stat}
https://www.bilibili.com/audio/au${id}

Opus/动态

When regex match bilibili\.com\/opus\/(\d+), reply

当正则表达式符合 bilibili\.com\/opus\/(\d+),回复

用户名的动态
内容
![图片](图片链接)
![图片](图片链接)...
转发:${forward} | 评论:${comment} | 点赞:${like}
https://www.bilibili.com/opus/${id}

Short link/短链接

When regex match b23\.tv\/([0-9a-zA-Z]+), bili(?:22|23|33)\.cn\/([0-9a-zA-Z]+), reply

当正则表达式符合 b23\.tv\/([0-9a-zA-Z]+)bili(?:22|23|33)\.cn\/([0-9a-zA-Z]+),会先解析回原链接,之后会自动交给以上方法处理。

Light App/小程序

When regex match https:\\\/\\\/b23.tv\\\/(.+)\?, reply

当正则表达式符合 https:\\\/\\\/b23.tv\\\/(.+)\?,会先解析回原链接,之后会自动交给以上方法处理。