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

coolbox

v0.3.15

Published

CoolBox (快工具箱) - Linux 服务器运维工具箱

Readme

CoolBox (快工具箱)

Linux 服务器(VPS)运维工具箱。

npx coolbox

要求机器已安装 Node.js(≥ 14)。如果机器上还没有 Node.js,参考下面的 安装 Node.js 与 npm


安装 Node.js 与 npm

推荐使用 NodeSource 提供的官方源安装,它会在你的系统里添加 NodeSource 的软件源,然后通过系统包管理器(apt / yum)安装指定版本的 Node.js。

npm 会随 Node.js 一起装好,无需单独安装。安装完成后 node -vnpm -v 都能直接用。

1. 选择 Node.js 版本

NodeSource 通过不同的 setup 脚本区分版本,把下面命令里的 <version> 换成你要的主版本号:

| 标识 | 含义 | 适用场景 | |------|------|---------| | setup_24.x | Node.js 24 | 推荐,当前 LTS 长期支持版 | | setup_22.x | Node.js 22 | 上一代 LTS,兼容性好 | | setup_lts.x | 自动选最新 LTS | 不想关心具体版本时用 | | setup_current.x | 最新版(含非 LTS) | 想尝鲜最新特性时用 |

2. Debian / Ubuntu(apt)

# 安装 curl(如果没有)
sudo apt install -y curl

# 添加 NodeSource 源(把 22.x 换成你要的版本)
curl -fsSL https://deb.nodesource.com/setup_24.x | sudo -E bash -

# 安装 Node.js(同时会装上 npm)
sudo apt install -y nodejs

3. CentOS / RHEL / Fedora / Rocky(yum / dnf)

# 安装 curl(如果没有)
sudo yum install -y curl

# 添加 NodeSource 源(把 22.x 换成你要的版本)
curl -fsSL https://rpm.nodesource.com/setup_24.x | sudo bash -

# 安装 Node.js(同时会装上 npm)
sudo yum install -y nodejs

CentOS/RHEL 用 yum,较新的 Fedora/Rocky 也可用 dnf 替换 yum,命令完全一致。

4. 验证安装

node -v     # 应输出类似 v24.x.x
npm -v      # 应输出类似 10.x.x

如果两条命令都能打印出版本号,说明安装成功,可以直接运行:

npx coolbox

5. 升级到新版本

想切换 Node.js 大版本(例如从 20 升到 24),只需重新跑对应版本的 setup 脚本再升级:

# Debian/Ubuntu
curl -fsSL https://deb.nodesource.com/setup_24.x | sudo -E bash -
sudo apt install -y nodejs

# CentOS/RHEL
curl -fsSL https://rpm.nodesource.com/setup_24.x | sudo bash -
sudo yum install -y nodejs

6. 卸载

# Debian/Ubuntu
sudo apt remove -y nodejs
sudo rm -f /etc/apt/sources.list.d/nodesource.list

# CentOS/RHEL
sudo yum remove -y nodejs
sudo rm -f /etc/yum.repos.d/nodesource*.repo

备注

  • NodeSource 源由 NodeSource 官方维护,比系统自带源(如 Debian 默认的 Node 12/18)版本更新更全。
  • 如果不想加第三方源,也可以用 nvm(Node Version Manager)按用户安装、随时切换版本,无需 sudo
  • 更多细节见 NodeSource 官方仓库:https://github.com/nodesource/distributions

License

MIT