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

@a634691481/hb-cli

v1.0.54

Published

HBuilderX CLI 管理工具 - 全局命令行工具

Downloads

423

Readme

@a634691481/hb-cli

HBuilderX CLI 管理工具 - 全局命令行工具

安装

npm install -g @a634691481/hb-cli

使用

在项目根目录下运行(需要有 manifest.json):

hb

功能

▶ 运行

| 编号 | 功能 | |------|------| | 1 | 🌐 运行 Web — 在 Chrome 浏览器中运行项目 | | 2 | 💬 运行微信小程序 | | 3 | 📎 运行支付宝小程序 | | 4 | 📱 运行 Android | | 5 | 📱 运行 Android(自定义基座) |

▶ 发布

| 编号 | 功能 | |------|------| | 6 | 📦 发布 H5 | | 7 | 💬 发布微信小程序 | | 8 | 📎 发布支付宝小程序 | | 9 | 📱 Android/iOS云打包 — 通过 pack.config.json 配置文件打包 |

▶ 配置

| 编号 | 功能 | |------|------| | 10 | 📋 项目列表 | | 11 | ⚙ 基本设置 — 配置 HBuilderX 安装路径 |

Android/iOS云打包

  • 首次使用自动在项目根目录生成 pack.config.json(带中文注释)
  • 打包前显示当前 versionNameversionCode,支持手动输入新版本号
  • 确认后自动更新 manifest.json 中的版本信息
  • 执行 pack --config pack.config.json --platform android

环境要求

  • Node.js >= 14
  • HBuilderX 已安装
  • 项目根目录包含 manifest.json

配置文件

主配置保存在 ~/.hbuilderx-cli.json:

{
  "hbxDir": "D:\\HBuilderX",
  "appid": "微信小程序AppID",
  "alipayAppid": "支付宝小程序AppID"
}

打包配置模板 pack.config.json(自动生成在项目根目录,含中文注释):

{
    //项目名字或项目绝对路径
    "project": "<项目名>",
    //打包平台
    "platform": "ios,android",
    //是否使用自定义基座
    "iscustom": false,
    //打包方式是否为安心打包
    "safemode": false,
    "android": { ... },
    "ios": { ... }
}

注意事项

  • 首次使用需在"基本设置"中配置 HBuilderX 安装路径
  • 默认搜索路径: D:\HBuilderX, C:\Program Files\HBuilderX
  • 微信/支付宝小程序 AppID 从 manifest.json 自动读取(优先 app-plus 节点)
  • manifest.json 支持 JavaScript 注释(/* *///),使用 strip-json-comments 解析
  • 菜单使用数字编号输入,非方向键选择