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

create-vext

v1.0.0

Published

[![Version](https://img.shields.io/npm/v/create-vext.svg)](https://www.npmjs.com/package/create-vext)[![License](https://img.shields.io/npm/l/create-vext.svg)](LICENSE) [English](README_EN.md) [简体中文](README.md)

Readme

vext-cli

VersionLicense English 简体中文

vext-cli 是一个用于快速创建和配置 Vext 项目的命令行脚手架工具。它可以帮助你轻松地初始化项目、配置项目名称、复制模板并安装依赖,节省开发初期的时间和精力。

特性

  • 快速创建项目:通过命令行快速生成项目骨架
  • 模板复制:自动复制模板文件并修改配置
  • 依赖管理:自动检测包管理器(npm/yarn/pnpm)并静默安装依赖
  • 错误回滚:失败时自动清理残留文件,提供错误码分类
  • 跨平台支持:兼容 Windows/macOS/Linux 系统

快速开始

安装

确保你已经安装 Node.js(版本 18 或以上)以及 npmyarn

npm install -g create-vext
# 或者使用 yarn
yarn global add create-vext

使用方法

使用 vext-cli 创建一个新的项目非常简单,只需运行以下命令:

vext create <project-name> [options]

参数说明

  • <project-name>:项目名称,仅允许使用小写字母、数字和连字符(-)。
  • --force:如果目标目录已存在,强制清除并覆盖。
  • --registry:指定项目依赖镜像源

示例

vext create my-awesome-project --force
vext create my-awesome-project --registry

错误码体系

vext-cli 使用一套预定义的错误码来表示不同的错误场景,便于定位问题。常见错误码包括:

  • 1001 - INVALID_NAME:项目名称不合法(只允许小写字母、数字和连字符)。
  • 1002 - DIR_EXISTS:目标目录已存在。
  • 1003 - TEMPLATE_MISSING:模板目录不存在。
  • 1004 - COPY_FAILED:文件复制失败。
  • 1005 - INSTALL_FAILED:依赖安装失败。
  • 1006 - CONFIG_FAILED:项目配置修改失败。
  • 1999 - UNKNOWN_ERROR:未知错误。

调试模式

在调试模式下(设置环境变量 DEBUG=true),vext-cli 会输出更详细的错误信息,方便开发者调试问题。

# Windows (PowerShell)
$env:DEBUG="1"; vext create test-project
# CMD
set DEBUG=1 && vext create test-project

# Linux/macOS
DEBUG=1 vext create test-project

启用后将显示详细错误堆栈和上下文信息

贡献

欢迎贡献代码、参与项目开发、报告 bug 或提出功能建议!

许可证

该项目采用 MIT License 开源许可。