# 使用 Homebrew, Nix 安装 htmlhint

查看 htmlhint 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:htmlhint
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install htmlhint
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#htmlhint
```

  证据: nixpkgs package indexes: pkgs/by-name/ht/htmlhint/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:htmlhint
- **软件包管理器:** Homebrew
- **版本:** 1.9.2
- **来源摘要:** Static code analysis tool you need for your HTML
- **主页:** <https://htmlhint.com>
- **最后更新:** 2026-06-15T10:20:18-04:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- htmlhint (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.9.2
## 项目历史与用法

HTMLHint is a JavaScript/TypeScript-oriented static analysis tool for HTML, distributed as a command-line linter and reusable library. In package-manager terms it is the HTML counterpart to project linters: small, scriptable, configurable with `.htmlhintrc`, and useful in editors and CI jobs.

### 项目历史

The official site and repository describe HTMLHint as a static code analysis tool for HTML. Its documentation centers on installation, configuration, CLI options, formatters, and programmatic use through the `HTMLHint.verify` API, which made it usable both as a standalone linter and as a library embedded in tooling.

The repository tag stream includes early 0.x releases in 2018 and later 1.x releases. The changelog shows the project continuing to add rules and output formats, including SARIF improvements useful for GitHub Code Scanning and new HTML rules such as duplicate attribute-value detection and obsolete-tag detection.

### 采用历史

HTMLHint's adoption is tied to the JavaScript tooling ecosystem: it can be installed with npm, run as a CLI, used programmatically, and integrated into editors. The input package facts record Homebrew and Nix packaging, which gives non-Node package-manager users a system-level install path for the same linter.

### 使用方式

Typical use is to lint project HTML files from the command line, configure rules in `.htmlhintrc`, choose formatter output for humans or machines, or call the library API from custom build tools. Its history tracks the broader move from browser-only HTML checking toward repeatable CI-friendly linting.

### 为什么软件包爱好者会关心

For package nerds, HTMLHint is significant as a clean example of a web-tooling package that crosses ecosystems: npm package, editor extension family, website docs, Homebrew formula, and Nix package. It makes HTML style and correctness checks available without asking every workflow to run a browser or a full validator service.

### 时间线

- 2018: The GitHub tag stream includes early 0.x releases.
- 2025: The changelog records 1.6.0 with SARIF formatter improvements and new rules.
- 2025: The tag stream includes 1.6.x releases around the documented changelog entries.
- Package-manager era: The input package facts record HTMLHint in Homebrew and Nix.

### Related projects

- HTMLHint sits alongside linters such as ESLint and Stylelint, but focuses on HTML markup. Its related ecosystem includes the official VS Code extension, CI code-scanning formats such as SARIF, and browser or validator-based HTML checking tools.

### 来源

- <https://api.github.com/repos/htmlhint/HTMLHint/commits/a20dcb8e2ef75c8a85c427612f7a07ee0c3e747e>
- <https://api.github.com/repos/htmlhint/HTMLHint/commits/cf955ef6bc111beff790544e7232272da4b4bb2d>
- <https://api.github.com/repos/htmlhint/HTMLHint/tags?per_page=100>
- <https://github.com/htmlhint/HTMLHint>
- <https://github.com/htmlhint/vscode-htmlhint>
- <https://htmlhint.com/>
- <https://htmlhint.com/changelog/>
- <https://htmlhint.com/configuration>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: .htmlhintrc
## 其他软件包管理器记录

- Nix - htmlhint: normalized package name match | nixpkgs package indexes: pkgs/by-name/ht/htmlhint/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/htmlhint.yml](https://github.com/mxcl/pkgdb/blob/main/combined/htmlhint.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
