{"id":15037281,"url":"https://github.com/htmlhint/htmlhint","last_synced_at":"2025-12-17T02:59:37.874Z","repository":{"id":7095272,"uuid":"8386628","full_name":"htmlhint/HTMLHint","owner":"htmlhint","description":"⚙️ The static code analysis tool you need for your HTML","archived":false,"fork":false,"pushed_at":"2025-04-30T12:07:30.000Z","size":12233,"stargazers_count":3127,"open_issues_count":57,"forks_count":401,"subscribers_count":76,"default_branch":"master","last_synced_at":"2025-04-30T13:33:29.893Z","etag":null,"topics":["analysis","code-analysis","code-quality","hint","html","htmlhint","javascript"],"latest_commit_sha":null,"homepage":"https://htmlhint.com","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/htmlhint.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"open_collective":"htmlhint"}},"created_at":"2013-02-24T04:57:55.000Z","updated_at":"2025-04-29T09:40:28.000Z","dependencies_parsed_at":"2023-01-14T11:45:17.114Z","dependency_job_id":"80564b32-fe36-489e-91ca-5a09648304c4","html_url":"https://github.com/htmlhint/HTMLHint","commit_stats":{"total_commits":759,"total_committers":66,"mean_commits":11.5,"dds":0.6508563899868247,"last_synced_commit":"a5816446571c2e6d2e3ccc231700a76938304f04"},"previous_names":["yaniswang/htmlhint"],"tags_count":32,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/htmlhint%2FHTMLHint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/htmlhint%2FHTMLHint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/htmlhint%2FHTMLHint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/htmlhint%2FHTMLHint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/htmlhint","download_url":"https://codeload.github.com/htmlhint/HTMLHint/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252767827,"owners_count":21801285,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["analysis","code-analysis","code-quality","hint","html","htmlhint","javascript"],"created_at":"2024-09-24T20:34:07.124Z","updated_at":"2025-12-17T02:59:37.791Z","avatar_url":"https://github.com/htmlhint.png","language":"JavaScript","readme":"\u003ch1 align=\"center\"\u003e\n  \u003cbr\u003e\n  \u003ca href=\"https://htmlhint.com\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/htmlhint/HTMLHint/master/website/static/img/htmlhint.png\" alt=\"Logo HTMLHint\" width=\"170\"\u003e\u003c/a\u003e\n  \u003cbr\u003e\n  HTMLHint\n  \u003cbr\u003e\n\u003c/h1\u003e\n\n\u003ch4 align=\"center\"\u003eThe static code analysis tool you need for your HTML.\u003c/h4\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://www.npmjs.com/package/htmlhint\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/v/htmlhint\" alt=\"npm Version\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://codecov.io/gh/htmlhint/HTMLHint\"\u003e\n    \u003cimg src=\"https://codecov.io/gh/htmlhint/HTMLHint/branch/master/graph/badge.svg\" alt=\"Codecov\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://www.npmjs.com/package/htmlhint\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/dm/htmlhint.svg\" alt=\"npm count\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/htmlhint/HTMLHint/blob/master/LICENSE.md\"\u003e\n    \u003cimg src=\"https://badgen.net/badge/license/MIT/green\" alt=\"MIT License\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"#-installation-and-usage\"\u003eHow To Use\u003c/a\u003e • \u003ca href=\"#contributing\"\u003eContributing\u003c/a\u003e • \u003ca href=\"https://htmlhint.com\"\u003eWebsite\u003c/a\u003e\n\u003c/p\u003e\n\n## Table of Contents\n\n- **[Installation and Usage](#-installation-and-usage)**\n  - **[Local Installation and Usage](#local-installation-and-usage)**\n  - **[Global Installation and Usage](#global-installation-and-usage)**\n- **[Example output](#-example-output)**\n- **[Configuration](#-configuration)**\n- **[Docs](#-docs)**\n\n## 📟 Installation and Usage\n\nThere are two ways to install HTMLHint: globally and locally.\n\n### Local Installation and Usage\n\nIn case you want to include HTMLHint as part of your project, you can install it locally using npm:\n\n```bash\n$ npm install htmlhint --save-dev\n```\n\nAfter that, You can run HTMLHint on any file or directory like this:\n\n```bash\n$ ./node_modules/.bin/htmlhint www/index.html\n$ ./node_modules/.bin/htmlhint www/**/*.html\n```\n\nOr, you can use HTMLHint linter programmatically, like this:\n\n```js\nimport { HTMLHint } from 'htmlhint'\nconst htmlVerificationHints = HTMLHint.verify(localHtmlContent)\nconsole.log('htmlVerificationHints', htmlVerificationHints) // this logs a list of `Hint`s which contain information on all linting errors\n```\n\n### Global Installation and Usage\n\nIf you want to make HTMLHint available to tools that run across all of your projects, you can install HTMLHint globally using npm:\n\n```bash\n$ npm install htmlhint -g\n```\n\nAfter that, you can run HTMLHint on any file like this:\n\n```bash\n$ htmlhint www/index.html\n$ htmlhint www/**/*.html\n```\n\nYou can even launch HTMLHint to analyze an URL:\n\n```bash\n$ htmlhint https://htmlhint.com/\n```\n\n## 📃 Example output\n\n## 🔧 Configuration\n\nSearch `.htmlhintrc` file in current directory and all parent directories:\n\n```bash\n$ htmlhint\n$ htmlhint test.html\n```\n\nCustom config file:\n\n```bash\n$ htmlhint --config htmlhint.conf test.html\n```\n\nCustom rules:\n\n```bash\n$ htmlhint --rules tag-pair,id-class-value=underline index.html\n```\n\nInline rules in `test.html`:\n\n```html\n\u003c!--htmlhint tag-pair,id-class-value:underline --\u003e\n\u003chtml\u003e\n  \u003chead\u003e\n    ...\n  \u003c/head\u003e\n\u003c/html\u003e\n```\n\n## 📙 Docs\n\n1. [How to use](https://htmlhint.com/docs/user-guide/usage/cli)\n2. [All Rules](https://htmlhint.com/docs/user-guide/list-rules)\n3. [How to Develop](CONTRIBUTING.md)\n\n## © License\n\n[MIT License](./LICENSE.md)\n\n## 💪🏻 Contributors\n\nThis project exists thanks to all these people. [Contribute](CONTRIBUTING.md).\n\u003ca href=\"https://github.com/htmlhint/HTMLHint/graphs/contributors\"\u003e\u003cimg src=\"https://opencollective.com/htmlhint/contributors.svg?width=890\" /\u003e\u003c/a\u003e\n\n## 🏅 Backers\n\nThank you to all our backers! [Become a backer](https://opencollective.com/htmlhint#backer).\n\n\u003ca href=\"https://opencollective.com/htmlhint#backers\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/htmlhint/backers.svg?width=890\"\u003e\u003c/a\u003e\n\n## 🎖 Sponsors\n\nSupport this project by becoming a sponsor. Your logo will show up here with a link to your website. [Become a sponsor](https://opencollective.com/htmlhint#sponsor).\n\n\u003ca href=\"https://opencollective.com/htmlhint/sponsor/0/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/htmlhint/sponsor/0/avatar.svg\"\u003e\u003c/a\u003e\n","funding_links":["https://opencollective.com/htmlhint"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhtmlhint%2Fhtmlhint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhtmlhint%2Fhtmlhint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhtmlhint%2Fhtmlhint/lists"}