# Install htmlhint with Homebrew, Nix

Static code analysis tool you need for your HTML. Version 1.9.2 via Homebrew; verified 2026-06-15.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install htmlhint
```

  Evidence: local Homebrew formula metadata

### Linux

- Nix (92%):

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

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

## Package facts

- **Package key:** brew:htmlhint
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/htmlhint>
- **Version:** 1.9.2
- **Source summary:** Static code analysis tool you need for your HTML
- **Homepage:** <https://htmlhint.com>
- **Repository:** <https://github.com/htmlhint/HTMLHint>
- **Upstream docs:** <https://htmlhint.com/>
- **License:** MIT
- **Source archive:** <https://registry.npmjs.org/htmlhint/-/htmlhint-1.9.2.tgz>
- **Last updated:** 2026-06-15T10:20:18-04:00
- **Generated:** 2026-07-08T18:08:21+00:00

## Executables

- htmlhint (cli)
- htmlhint (alias)

## Dependencies

- node

## Install behavior

- Post-install hook: not defined
- Bottle: available on all

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 1.9.2
- Package-manager updated: 2026-06-15
- Local data: ok
- Upstream repository: https://htmlhint.com
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

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.

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

- 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.

### Sources

- <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>


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- 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
## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** htmlhint
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## Other Package-Manager Records

- 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


## Related links

- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Language runtime packages](https://www.automicvault.com/pkg/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [node](https://www.automicvault.com/pkg/brew/node/) - Runtime dependency declared by Homebrew.
- [quick-lint-js](https://www.automicvault.com/pkg/brew/quick-lint-js/) - Shares av.db curated category or tags: cli, developer-tools, javascript, linter, linting.
- [elvis](https://www.automicvault.com/pkg/brew/elvis/) - Shares av.db curated category or tags: cli, developer-tools, linter, linting, static-analysis.
- [eslint](https://www.automicvault.com/pkg/brew/eslint/) - Shares av.db curated category or tags: cli, code-quality, developer-tools, javascript, linter.
- [flake8](https://www.automicvault.com/pkg/brew/flake8/) - Shares av.db curated category or tags: cli, code-quality, developer-tools, linting, static-analysis.
- [oxlint](https://www.automicvault.com/pkg/brew/oxlint/) - Shares av.db curated category or tags: cli, developer-tools, javascript, linter, linting.
- [pmd](https://www.automicvault.com/pkg/brew/pmd/) - Shares av.db curated category or tags: cli, code-quality, developer-tools, javascript, linter.
- [protolint](https://www.automicvault.com/pkg/brew/protolint/) - Shares av.db curated category or tags: cli, developer-tools, linter, linting, static-analysis.
- [rslint](https://www.automicvault.com/pkg/brew/rslint/) - Shares av.db curated category or tags: cli, developer-tools, javascript, linter, linting.
- [htmlhint](https://www.automicvault.com/pkg/npm/htmlhint/) - Same normalized package name appears in another local ecosystem. Shared terms: analysis, cli, code, developer, developer-tools.
- [htmlhint](https://www.automicvault.com/pkg/npm/htmlhint/) - Same normalized package name in another local ecosystem.

## Combined YAML source

View the package source record on GitHub. [combined/htmlhint.yml](https://github.com/automic-vault/db/blob/main/combined/htmlhint.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
