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

@xstools-dev/cli-toolkit

v0.5.0

Published

Readme

@xstools-dev/cli-toolkit

开发、发布和 Monorepo 维护所需 CLI 的统一入口。这是全家桶:安装本包会带上下面列出的全部上游工具,不能按命令拆开安装。适合已经使用 Changesets、Turbo、sherif 等同套工具链的仓库。

安装

pnpm add -D @xstools-dev/cli-toolkit

命令

命令清单的唯一来源是 src/proxy/tools.ts 中的 TOOLS。pnpm build 会据此生成 bin/*.js 并写回 package.json 的 bin 字段。

当前代理的命令:

| 命令 | 上游包 | | ------------- | -------------------- | | changeset | @changesets/cli | | czg | czg | | del | del-cli | | dotenvx | @dotenvx/dotenvx | | port-client | port-client | | s | @serverless-devs/s | | sherif | sherif | | turbo | turbo |

另依赖 @changesets/changelog-github,供 Changesets 写 changelog,不是独立命令。

示例:

{
  "scripts": {
    "changeset": "changeset",
    "check-mono": "sherif",
    "build": "turbo run build"
  }
}

命令由各自的上游工具实现;本包负责提供稳定、统一的命令入口。新增或删除命令时,只改 TOOLS,然后跑 pnpm build(或 pnpm gen-bin),把生成的 bin/ 与 package.json 一并提交。

代码 API

@xstools-dev/cli-toolkit/extends 导出 dotenvLoad,用于读取指定的环境变量文件并写入 process.env:

import { dotenvLoad } from '@xstools-dev/cli-toolkit/extends';

dotenvLoad('.env');

@xstools-dev/cli-toolkit/dotenvx 导出 dotenvx SDK,可以用 config 把多个环境变量文件加载到指定对象中。

import { dotenvx } from '@xstools-dev/cli-toolkit/dotenvx';

const env = { ...process.env };
dotenvx.config({ path: ['.env.project', '.env.local'], processEnv: env, strict: true });