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

xtool.ng

v2.0.0

Published

xtool — 个人命令行工具集合(统一入口分发)

Downloads

687

Readme

xtool

个人命令行工具集合(统一入口:4 个工具,未来可扩展)。

快速使用

# 1. 安装(一次性)
npm install -g xtool.ng

# 2. 查看总览
xtool

# 3. 查看某个工具的帮助
xtool -h rename
# 或
xtool rename --help

# 4. 跑某个工具
xtool png -q 90                 # PNG → JPG(默认 action)
xtool png -a merge ~/Downloads  # PNG 智能合并
xtool rename '^test-(.*)\.txt$' 'prod-#1.txt' -y
xtool mp4 -d ./videos
xtool pdf "report.pdf"          # PDF → JPG 导出(默认 action)
xtool pdf -a compress "report.pdf"

已收录工具

| 工具 | 作用 | | -- | -- | | mp4 | 批量压缩 MP4(码率超标检测 + CRF23,hevc 带 hvc1 tag,Finder/空格预览正常) | | pdf | PDF → JPG 导出 / 图片合并为 PDF / PDF 压缩(-a fetch/merge/compress) | | png | 批量 PNG → JPG(-a jpg,默认)/ 智能合并 PNG(-a merge) | | rename | 当前目录按正则重命名(dry-run 默认) |

详见 docs/subcommands/

安装要求

  • Node ≥ 18
  • macOS / Linux / Windows
  • mp4 需要 ffmpeg + ffprobepdf / png 需要 ImageMagick (magick);pdf -a compress 需要 Ghostscript (gs)。

macOS:

brew install ffmpeg imagemagick ghostscript

参与开发

阅读 AGENTS.md。任务完成后跑 ./scripts/verify