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

@herenit/hrd-toolkit-cli

v1.5.2

Published

hrdc command line interface for heren-design toolkit

Readme

@herenit/hrd-toolkit-cli

@herenit/hrd-toolkit-cli 提供 hrdc 命令,用于查询 heren-design-web-vue 组件知识、Icon、业务模板,并扫描本地 Vue 项目的组件和命令式插件使用情况。

安装

npm install -g @herenit/hrd-toolkit-cli

安装后验证:

hrdc --cli-version

快速开始

hrdc --cli-version
hrdc list
hrdc info hr-button

全局参数

| 参数 | 说明 | | -------------------------- | ----------------------------------------------------- | | --format <format> | 输出格式:textjsonmarkdown,默认 text。 | | --lang <lang> | 输出语言:zhen,默认 zh。 | | --data-version <version> | 使用指定内置组件知识版本,例如 1.8.0。 | | --detail | 输出更完整的信息,部分命令会使用。 |

命令速查

| 命令 | 用途 | | ------------------------------ | --------------------------------------------------------------- | | hrdc --cli-version | 输出 CLI 版本号。 | | hrdc list | 列出组件,可用 --category 过滤。 | | hrdc info <component> | 查询组件 Props、Events、Slots 和 Expose 方法。 | | hrdc doc <component> | 获取组件完整 Markdown 文档。 | | hrdc demo <component> [name] | 列出或获取组件 Demo。 | | hrdc icons [query] | 查询 hr-icon 图标数据,可用 --type--limit--offset。 | | hrdc templates [name] | 列出或获取业务代码模板。 | | hrdc usage [dir] | 扫描本地项目中的组件和命令式插件使用统计,可用 --filter。 | | hrdc lint [target] | 检查本地项目中的 heren-design 使用规范问题。 | | hrdc doctor | 诊断项目配置。 | | hrdc env [dir] | 收集项目环境信息。 |

使用示例

hrdc list --format json
hrdc info hr-button --data-version 1.8.0
hrdc icons search --format json
hrdc templates list-page --format markdown
hrdc usage ./src --filter hr-button

常见用途

  • 查询组件 Props、Events、Slots 和 Expose 方法。
  • 获取组件文档、Demo 和业务代码模板。
  • 搜索 hr-icon 图标。
  • 扫描本地 Vue 项目中的 heren-design 组件和命令式插件使用情况。
  • usage 中的插件统计按导入出现次数计算,不统计具体方法调用次数。
  • 诊断项目环境和常见配置问题。