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

td-web-cli

v0.1.21

Published

A CLI tool for efficiency

Downloads

2,344

Readme

项目名称

一个基于 Node.js 和 TypeScript 的高效 CLI 工具,用于提升工作效率。


目录


环境要求

  • Node.js >= 20.18.2(推荐使用 22.x 或更高版本)
  • npm >= 10.8.2

注意:部分依赖可能要求更高版本,请根据实际情况调整。


安装

npm i -g td-web-cli

使用

命令行执行

td-web-cli

功能说明


开发

  1. 克隆仓库
git clone https://github.com/qianyuzzf/td-web-cli.git
cd td-web-cli
  1. 安装依赖
npm install

代码结构

  • src/ - TypeScript 源代码目录
  • dist/ - 编译后的 JavaScript 输出目录
  • release.js - 发布脚本(可直接运行或编译后运行)

运行开发环境

npm run build
npm link
td-web-cli  # 确保本机未全局安装该工具

通过 npm link,本地调试 CLI 命令 td-web-cli


构建

使用 TypeScript 编译项目:

npm run build

编译后的代码默认输出到 dist/ 目录。


发布

通过自动化脚本完成发布流程:

npm run release

该命令将依次执行:

  • 版本号更新
  • 依赖安装
  • 项目构建
  • 发布到 npm
  • 提交并推送 Git 代码

项目结构

.
├── src/                  # TypeScript 源代码目录,存放项目的核心业务代码
│   └── index.ts          # 入口文件,程序的启动点
├── dist/                 # 编译输出目录,存放 TypeScript 编译后的 JavaScript 文件
├── docs/                 # 项目文档目录,包含功能说明、使用手册、设计文档等
├── release.js            # 发布脚本,自动化完成版本发布相关操作
├── setting.json          # 配置文件,存放项目运行所需的配置信息
├── package.json          # npm 项目配置文件,定义依赖、脚本和元信息
├── tsconfig.json         # TypeScript 配置文件,指定编译选项和项目结构
├── README.md             # 项目说明文件,提供项目简介、安装使用等基础信息
├── .gitignore            # Git 忽略文件,指定不纳入版本控制的文件或目录
├── .prettierignore       # Prettier 忽略文件,指定格式化工具忽略的文件或目录
├── .prettierrc           # Prettier 配置文件,定义代码格式化规则
└── package-lock.json     # 依赖锁定文件,确保安装依赖版本一致

感谢您使用本项目!如有任何问题或建议,欢迎反馈与贡献。