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

lchao-cli

v1.0.58

Published

chao的脚手架

Readme

欢迎使用 Chao 的脚手架

Chao 脚手架是一个用于快速生成项目、管理依赖、绑定 Git 仓库和生成 API 请求文件的工具集。支持多种常用的开发操作,提高开发效率。

指令列表

1. 生成新项目

指令:

lchao create

描述: 从线上仓库生成项目到当前目录(不包含 .git)。

执行此命令后,脚手架会从指定的线上仓库生成新项目,并自动设置目录结构。


2. 清理项目缓存

指令:

lchao clear

描述: 删除当前目录下的 node_modules 文件夹和 package-lock.json 文件。

使用示例:执行此命令后,会清理掉当前项目中的依赖缓存,为重新安装依赖提供干净的环境。


3. 切换 npm 镜像源

指令:

lchao set-npm

描述: 交互式切换 npm 镜像源。

执行此命令后,你将被引导选择要使用的 npm 镜像源,例如 淘宝镜像官方源


4. 绑定 Git 远程仓库

指令:

lchao bind-git

描述: 绑定线上仓库地址到当前项目,并处理文件冲突。

执行此命令后,你可以选择绑定远程 Git 仓库地址,方便后续的代码推送。


5. 生成 API 请求结构和 TS 接口

指令:

lchao create-api

描述: 生成 API 请求结构和 TypeScript 接口文件。

执行此命令后,会根据项目需求生成一个基础的 API 请求文件和相应的 TypeScript 接口,便于开发时的类型检查和代码提示。


6. 显示支持的指令列表

指令:

lchao ls

描述: 显示当前支持的指令列表。

执行此命令后,会输出当前支持的所有指令,帮助用户了解可用的操作。

输出示例:

指令列表:
  lchao create - 从线上仓库生成项目到当前目录(不包含 .git)
  lchao clear  - 删除当前目录下的 node_modules 和 package-lock.json
  lchao set-npm  - 交互式切换 npm 镜像源
  lchao bind-git - 绑定线上仓库地址到当前项目
  lchao create-api - 生成 API 请求结构和 TS 接口
  lchao ls     - 显示当前支持的指令列表

使用指南

  1. 安装
    确保你已经安装了 Node.jsnpm,然后在项目中运行以下命令来安装该脚手架工具:

    npm install -g chao-cli
  2. 初始化新项目
    使用 lchao create 命令生成新项目。

  3. 清理缓存
    使用 lchao clear 清理项目中的 node_modulespackage-lock.json

  4. 切换镜像源
    使用 lchao set-npm 命令交互式选择需要使用的 npm 镜像源。

  5. 绑定 Git 仓库
    使用 lchao bind-git 将 Git 仓库与项目绑定。

  6. 生成 API 请求文件
    使用 lchao create-api 生成 API 请求结构和接口文件。


开发者文档

更新日志

2025年4月

  • 2025/4/25: 优化 GET 参数传递。
  • 2025/4/20: 修改生成后台接口代码。
  • 2025/4/17: 修改生成后台接口代码(多次优化)。
  • 2025/4/16: 修改生成后台接口代码(优化性能和字段映射)。
  • 2025/4/15: 优化接口生成逻辑。
  • 2025/3/25: 增加 Vue3 生成接口代码。
  • 2025/3/24: 配置自动生成接口代码。
  • 2025/3/21: 配置自动生成接口代码(多次调整)。
  • 2025/3/05: 更新 MD 文档。
  • 2025/2/27: 增加项目快速搭建功能和绑定 Git 仓库功能。
  • 2025/2/27: 发布 Chao 脚手架初始版本。
  • 2025/5/12: 修改git请求ts报错