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

bilibili-up-remind

v1.0.2

Published

可以定时查看b站中的目标up主是否更新了,若更新了会通过发送邮箱的形式及时提醒

Readme

bilibili-up-remind

文档锚链接

1. 该库用来干什么?
2. 主要文件描述
3. 配置描述
4. Installation安装
5. Usage使用方法

1. 该库用来干什么?

可以定时查看b站中的目标up主是否更新了,若更新了会通过发送邮箱的形式及时提醒

2. 主要文件描述

  • /index.js主入口文件
  • /config.js主配置文件
  • /initConfig.js下边配置的默认值文件
  • /bilibili.json储存之前目标up主们的最新视频数据,可以在email.html中用到

3. 配置描述

主配置

| 参数名 | 数据类型 | 必填|默认值 |简单描述 |举例| | :----:| :----: | :----: | :----: | :----: |:----: | | delayTime | Number|否⭕ | 605(五分钟) | 单位,间隔多久去抓取信息 |602(2分钟)| | targetUrls | Array|是🐢 | | up主们的主页地址列表 |["https://space.bilibili.com/517327498" , "..."]| | safeCode | String |否🐢 | "not🎣网站!🐢" | 防止他人恶意链接的安全码,会附加到邮件内容里去 |我的安全码| | email | Object|是🐢 | | 配置邮箱信息(暂只支持qq邮箱),参考主配置👉email配置 |

主配置👉email配置

| 参数名 | 数据类型 | 必填|简单描述 |举例| | :----:| :----: | :----: | :----: | :----: | | receiveEmail | String|是🐢 | 接收者的邮箱(可以填sendEmail) |[email protected]| | sendEmail | Array|是🐢 | 发送者的邮箱(可以填receiveEmail) |[email protected]| | sendPass | String |是🐢 | 发送者的qq邮箱的SMTP授权码(需要自己去查询) |tahfpitbbgocnrag| | html | Function|否🐢 | 自定义配置输出到邮件的每个最新电影内容html模板默认值:去initConfig.js看 |参考html配置|

主配置👉email👉html配置
{
    delayTime:xx,
    ...,
    email: {
        receiveEmail: xx,
        ...,
        html(item) {
            /* 
                author作者,bvid视频id,title视频标题,created更新的时间戳(单位秒),time更新的时间(如:2小时前) ....
                还有很多其他属性可以去/bilibili.json文件自己摸索
            */
            const { author, bvid, title, created } = item;
            const time = moment(created * 1000).fromNow();
            return `
                <div>
                    <h1>
                        UP主:<span style="color:#008c8c;">${author}</span>
                    </h1>
                    <h2>最新视频:<a href='https://www.bilibili.com/video/${bvid}'>${title}(点击打开)</a></h2>
                    <h2>更新时间:<span style="color:#f40;">${time}</span></h2>
                    <h2 style="word-break: break-all;">链接:https://www.bilibili.com/video/${bvid}</h2>
                    <hr />
                </div>
            `
        }
    }
}

4. Installation安装

npm install bilibili-up-remind
或者
yarn add bilibili-up-remind

5. Usage使用方法

1.安装依赖
npm install bilibili-up-remind
或者
yarn add bilibili-up-remind
2.找到config.js文件,配置必要的属性targetUrls,email...具体可以看这:配置描述
3.运行node程序(不能关闭程序,因为里边是一个死循环,定时去抓取数据)
node ./index.js