{"id":18424,"library":"htmllint-cli","title":"htmllint-cli","description":"Command-line interface for htmllint, an HTML linter. Version 0.0.7 (as of last release). This package provides a CLI tool to lint HTML files against configurable rules via a .htmllintrc file. It is a thin wrapper around the htmllint library, with basic glob support and an init command. Development appears inactive (last updated long ago), and it requires Node >=4. Compared to alternatives like HTMLHint, this package has limited features and no recent updates.","status":"deprecated","version":"0.0.7","language":"javascript","source_language":"en","source_url":"https://github.com/htmllint/htmllint-cli","tags":["javascript"],"install":[{"cmd":"npm install htmllint-cli","lang":"bash","label":"npm"},{"cmd":"yarn add htmllint-cli","lang":"bash","label":"yarn"},{"cmd":"pnpm add htmllint-cli","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Core linting engine; htmllint-cli is a CLI wrapper around it","package":"htmllint","optional":false}],"imports":[{"note":"Use ESM import; CommonJS require may also work but ESM is preferred.","wrong":"const htmllint = require('htmllint')","symbol":"default export","correct":"import htmllint from 'htmllint'"}],"quickstart":{"code":"npm install -g htmllint-cli\ncd my-project\nhtmllint init\n# edit .htmllintrc as needed\nhtmllint index.html","lang":"bash","description":"Global install, initialize config, lint a single HTML file."},"warnings":[{"fix":"Migrate to HTMLHint (npm install htmlhint) or other active HTML linters.","message":"htmllint-cli is no longer actively maintained; use an alternative like HTMLHint or a more modern linter.","severity":"deprecated","affected_versions":"<=0.0.7"},{"fix":"Backup existing .htmllintrc before running htmllint init.","message":"The init command may overwrite existing .htmllintrc without warning.","severity":"breaking","affected_versions":">=0.0.0"},{"fix":"Use quotes for globs: htmllint \"**/*.html\"","message":"Glob patterns are expanded by the shell, not by htmllint-cli; ensure proper quoting in some environments.","severity":"gotcha","affected_versions":">=0.0.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Run npm install -g htmllint-cli htmllint","cause":"Missing peer dependency htmllint; npm <7 does not auto-install peer deps.","error":"Error: Cannot find module 'htmllint'"},{"fix":"Validate .htmllintrc with a JSON linter or use jsonlint.","cause":"Invalid JSON in .htmllintrc configuration file.","error":"SyntaxError: Unexpected token } in JSON at position ..."}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}