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

@wagq/wa-cli

v0.6.58

Published

wa的脚手架

Readme

wa-cli

基于 Commander 的本地脚手架(@wagq/wa-cli)。

安装

npm i -g @wagq/wa-cli

全局安装后使用 wa <命令> 调用。

wa --help

命令一览

以下命令以 config/command.js 为准(含别名/参数)。

init

  • 作用:项目初始化工具,交互式选择模板创建项目
  • 用法wa init
  • 别名wa i
  • 可选模板
    • vue单页面后台 — 从 GitHub 仓库 sdmu-gaoqi/vite-vue 克隆
    • vue多页面项目 — 从 GitHub 仓库 sdmu-gaoqi/vite-vue-multiple 克隆
    • React — 支持 SPA / 微前端基座 / 微前端子应用
    • vite — 调用 npm create vite@latest
    • uniapp(unibest) — 调用 npm create unibest
    • vscode插件-vue版 / vscode插件-react版
    • umi — 调用 npx create-umi@latest
    • react-native — 调用 npx create-expo-app --template
wa init
wa i

server

  • 作用:启动本地静态服务(基于 http-server
  • 用法wa server [path]
  • 别名wa s [path]
  • 位置参数
    • path:文件路径,默认 dist
  • 选项
    • -P, --port <port>:端口(默认 3000
    • -S, --https <boolean>:是否开启 https,开启后会提示输入证书/私钥路径(也可使用 CLI 自带证书)
wa server
wa s dist -P 3000 -S true

xlsx2Config

  • 作用:xlsx 文件转多语言配置
  • 用法wa xlsx2Config [path] [name] [ext]
  • 别名wa l [path] [name] [ext]
  • 位置参数
    • path:文件路径
    • name:xlsx 文件名称
    • ext:转换文件格式(tsjson
wa xlsx2Config ./locale excel.xlsx json

daml

  • 作用:交互式同步低代码逻辑器文件(需在项目根目录提供 scripts/asyncDamlFetch.js
  • 用法wa daml
  • 别名wa d
  • 交互选项
    • 备注信息(文件夹名称,默认 asyncData
    • 同步数据类型:逻辑编辑器 / 变量编辑器 / 变量与逻辑
wa daml
wa d

damls

  • 作用:从应用同步所有页面的逻辑器与变量值
  • 用法wa damls
  • 别名wa da
  • 配置:在项目根目录创建 .damlrc.json(数组形式),初次执行会自动生成模板文件

.damlrc.json 示例:

[
  {
    "appName": "my-app",
    "origin": "https://example.com",
    "appId": "xxx",
    "branchid": "yyy",
    "token": "zzz"
  }
]
  • 字段说明
    • origin:低代码平台域名
    • appId / branchid / token:接口鉴权参数
    • appName:应用名称(生成的文件会放在以 appName 命名的文件夹下)
  • 交互选项
    • 是否将目录加入 .gitignore
    • 是否使用 prettier 格式化代码
wa damls
wa da

batchUpdate

  • 作用:批量升级依赖包,可指定组织范围
  • 用法wa batchUpdate
  • 别名wa bu
  • 交互:输入需要更新的包组织前缀(如 @wagq),会自动更新 dependencies 中匹配该前缀的依赖
wa batchUpdate
wa bu

web2exe

  • 作用:将网页打包成 exe(内部调用 nativefier
  • 用法wa web2exe <name> <path> [icon]
  • 别名wa we <name> <path> [icon]
  • 参数说明
    • name:应用名称
    • path:网页地址或本地 html 文件路径(透传给 nativefier
    • icon:图标路径(可选)
wa web2exe MyApp https://example.com ./icon.ico

skills

  • 作用:交互选择并执行 openskills 相关命令
  • 用法wa skills
  • 别名wa sk
  • 交互选项
    • getList — 执行 npx openskills install anthropics/skills
    • sync — 执行 npx openskills sync
wa skills
wa sk

generateIcon2Tsx

  • 作用:将 SVG 图标文件批量生成 TSX React 组件与配置文件
  • 用法wa generateIcon2Tsx <svgPath>
  • 别名wa gitsx <svgPath>
  • 参数说明
    • svgPath:SVG 文件夹地址(需包含 outline/fill/multipleTone/ 子目录)
    • output: 导出文件输出文件地址
  • 输出
    • svgConfig/ — SVG 数据配置文件
    • icons/ — 生成的 TSX 组件
    • index.ts — 所有图标统一导出入口
  • 命名规范:SVG 文件需按 outlinemultipleTonefill 风格分类存放,并规范后缀命名,如 AuctionMenuMultipleTone.svgAddCircleOutlined.svg
wa generateIcon2Tsx ./svgs
wa gitsx ./svgs ./index.ts

changesetDoc

  • 作用:包版本管理
  • 用法wa changesetDoc <mode>
  • 别名wa chd <mode>
  • 选项
    • -r, --registry <registry>:指定 npm 仓库地址(默认 https://registry.npmjs.org/
  • mode 可选值
    • dev — 启动文档预览
    • doc — 构建文档
    • changeset — 收集changlog
    • ver — 更新包
    • tBuild — 打包包
    • enterBeta — 进入 beta 模式
    • exitBeta — 退出 beta 模式
    • pub — 构建并发布正式包
    • pubBeta — 构建并发布 beta 包
wa changesetDoc dev
wa chd pub

vsSetting

  • 作用:生成 .vscode/settings.json 配置文件(Prettier + ESLint 自动修复)
  • 用法wa vsSetting
  • 别名wa vs
wa vsSetting
wa vs

checkBranch

  • 作用:检查当前 git 分支是否为 目标分支,非目标分支则报错退出
  • 用法wa checkBranch [目标分支名]
  • 别名wa ckb [目标分支名]
wa checkBranch
wa ckb

clearLibrary

  • 作用:递归删除 packages/*/distpackages/*/node_modules 及根目录 node_modules
  • 用法wa clearLibrary
  • 别名wa cle
wa clearLibrary
wa cle