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

notify-qq

v0.0.5

Published

使用qq来进行消息通知

Readme

background

消息通知的渠道有很多,但市面上大部分都不适合我,因为平常 QQ 使用频繁,因此想用 QQ 来进行消息通知,但无奈 QQ 的诸多限制,实行起来并不容易,本项目使用 oicq 来进行消息的推送,本项目仅提供用于发送消息的最小版本

效果

leftover

前置条件

您需要一个 QQ 号用来发送消息,接收消息的那个 QQ 号必须是用来发送消息的那个 QQ 号的好友,下文所说的 bot 均为用来发送消息的那个 QQ 号

登录

第一次登录会提示输入 ticket,打开控制台的提示的链接,收到滑动验证码提示后,可使用 https://github.com/mzdluo123/TxCaptchaHelper 协助获取ticket 也可用PC浏览器滑动,从开发者工具网络请求cap_union_new_verity中得到ticket

然后会生成一个文件夹,默认是当前工作目录下的data文件夹,之后登录就不需要验证了,当然很久没有登录会导致token过期,就会需要验证

Usage

npm install notify-qq
import { sendMsg, sendMsgWithCI } from 'notify-qq'

/* from: bot的QQ帐号(required)
   password: bot的QQ密码 (required)
   to: 接收消息的那个人的QQ号,(required)
   content:消息内容,(required)
   imagePath:发送的图片对应的地址(支持本地相对地址,相对于当前的工作目录,也支持线上https,base64)(optional)
   dataDir: 指定在哪个目录下面生成data文件夹,该文件夹是用来存储登录数据的文件夹,默认是在当前工作目录下生成 data 文件夹 ,(optional, default:process.cwd())
   strict:严格模式,若为true,则需要手动登录的时候将抛出异常,为false则提示手动登录,(optional,default:false)
  */ 
//sendMsg(from: number, password: string, to: number, content: string, imagePath?: string, dataDir?: string,strict?:boolean)
sendMsg(123456789, 123456789, 123456788, 'hello', undefined, process.cwd())

// 将从环境变量中读取数据,仅能在CI环境下使用,CI环境下默认strict:true,需要手动登录则抛出异常
// 可用的环境变量 FROM, PASSWORD, TO, CONTENT, IMAGE_PATH, DATA_DIR ,一一对应上面的参数
sendMsgWithCI()

License

MIT