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

@tomsun28/demo-cli

v1.0.1

Published

A simple CLI tool built with Node.js and TypeScript

Readme

Demo CLI

一个基于 Node.js 和 TypeScript 的简单命令行工具。

功能特性

  • 🚀 交互式命令行界面
  • 📝 文件创建功能
  • 📂 目录浏览功能
  • 💬 问候信息显示
  • 🔧 TypeScript 支持
  • 📦 可全局安装
  • 🌐 多平台发布支持

安装

从 npm 安装(推荐)

npm install -g @tomsun28/demo-cli

从 GitHub Packages 安装

npm install -g @tomsun28/demo-cli --registry=https://npm.pkg.github.com

本地开发安装

git clone https://github.com/tomsun28/demo-cli.git
cd demo-cli

# 安装依赖
npm install

# 构建项目
npm run build

# 全局安装
npm install -g .

使用方法

交互式模式

直接运行 demo-cli 进入交互式模式:

demo-cli

或者使用:

demo-cli interactive
demo-cli i

快速命令

显示问候信息

demo-cli hello
demo-cli hello 张三

显示版本信息

demo-cli version

显示帮助

demo-cli --help

开发

项目结构

demo-cli/
├── src/
│   └── index.ts          # 主要入口文件
├── dist/                 # 构建输出目录
├── package.json          # 项目配置
├── tsconfig.json         # TypeScript 配置
└── README.md            # 项目说明

开发脚本

# 开发模式运行
npm run dev

# 构建项目
npm run build

# 清理构建文件
npm run clean

依赖

  • commander: 命令行参数解析
  • inquirer: 交互式命令行界面
  • typescript: TypeScript 支持
  • @types/node: Node.js 类型定义

许可证

MIT