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

@renmu/bili-cli

v0.3.2

Published

b站视频下载订阅CLI

Readme

简介

你还在担心你关注的 up 主被删视频吗?这个工具帮助你来自动下载备份视频。

你也可以通过视频来进行入门

安装

npm install @renmu/bili-cli -g

使用

使用 如果你想下载高画质视频,请登录,登录请运行bili login
下载有两种模式,如果你设置了ffmpegBinPath参数,会采用 dash 流模式,该模式的画质更高,支持编码等参数选择。
如果你没有设置ffmpegBinPath参数,登录情况下视频的分辨率大概最大是 720p。

更多使用见help命令

订阅

添加订阅

bili sub add 10995238

移除订阅

bili sub remove 10995238

下载订阅

bili sub download

定时运行订阅

默认十分钟运行一次 bili sub server

下载

bili download https://www.bilibili.com/video/BV1u94y1K7nr

文档

Usage: bili [options] [command]

b站命令行

Options:
  -V, --version                output the version number
  -h, --help                   display help for command

Commands:
  login                        登录b站账号
  download [options] [url]     下载视频
  subscribe|sub                订阅
  config                       配置项
  help [command]               display help for command
Usage: bili subscribe|sub [options] [command]

订阅

Options:
  -h, --help       display help for command

Commands:
  download          下载订阅
  add <number>      添加一个up主到订阅
  remove <number>   移除一个订阅的up主
  list              显示所有订阅
  server [options]  定时运行sub命令,默认十分钟运行一次

配置

支持的配置项有:

  1. downloadPath: 下载路径,默认为~/.bili-cli/videos
  2. ffmpegBinPath: ffmpeg 可执行文件路径,默认使用当前文件夹及环境变量
  3. logLevel: log 等级,支持 error,warn,info,debug
Usage: bili config [options] [command]

配置项

Options:
  -h, --help             display help for command

Commands:
  print                  显示配置项
  set <string> <string>  设置配置项
  help [command]         display help for command

赞赏

如果本项目对你有帮助,请我喝瓶快乐水吧,有助于项目更好维护。
爱发电:https://afdian.net/a/renmu123
你也可以给我的 B 站帐号充电

开发

api 基于biliApi node 需要 18 及以上版本

Install

$ pnpm install

Development

$ pnpm run dev

Build

$ pnpm run build

License

GPLv3