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

lby-cli

v1.0.6

Published

鲁班云创建项目脚手架

Readme

🚀 CLI 脚手架使用说明

1️⃣ 安装 CLI 工具

在全局安装你的 CLI 工具:

npm install -g lby-cli

安装成功后,可以使用 lby-cli 命令。

注意:仅支持node >= 18

2️⃣ 创建新项目

运行以下命令,开始创建一个新项目:

lby-cli init

脚手架会引导你进行以下选择和输入:

  1. 输入项目名称
  2. 选择项目类型
  3. 选择包管理工具(npm/yarn/cnpm)
  4. (可选)输入 GitLab 项目地址

如果 GitLab 地址留空,代码不会推送到 GitLab。


3️⃣ 交互流程示例

lby-cli init
🚀 欢迎使用公司 CLI 脚手架
请输入项目名称: my-project
选择项目类型:
  ❯ h5-template
选择安装方式:
  ❯ npm
请输入 GitLab 项目地址(可选,直接回车跳过): https://gitlab.com/your-group/my-project.git
📦 正在使用 npm 安装依赖...
🔧 正在初始化 Git 仓库...
🚀 正在推送代码到 GitLab...
✅ 代码已成功推送到 GitLab!
🔗 你的 GitLab 仓库地址: https://gitlab.com/your-group/my-project.git

如果 GitLab 地址为空,则不会进行 Git 初始化和推送。


4️⃣ 支持的项目类型

| 项目类型 | Git 模板地址 | |----------|--------------| | h5-template | http://192.168.7.240/lb_team/lby-templates.git | | uniapp-template | http://192.168.7.240/lb_team/lby-templates.git | | vue2-element-template | http://192.168.7.240/lb_team/lby-templates.git |

5️⃣ 目录结构

创建完成后,项目目录结构如下:

my-project/
├── node_modules/
├── src/
├── public/
├── .gitignore
├── package.json
├── README.md
└── ...

如果选择了 GitLab 地址,初始化后会自动推送到远程仓库。


6️⃣ FAQ

1. CLI 工具如何更新?

npm update -g lby-cli

2. 如何卸载 CLI 工具?

npm uninstall -g lby-cli

3. GitLab 地址必须填写吗?

不是必须的,如果不输入 GitLab 地址,项目仍然会正常创建,但不会进行 Git 初始化和推送。


🎉 祝你开发顺利!