{"id":23442306,"url":"https://github.com/html-validate/html-validate","last_synced_at":"2025-04-13T11:10:53.925Z","repository":{"id":189968149,"uuid":"680938833","full_name":"html-validate/html-validate","owner":"html-validate","description":"Mirror of the HTML-Validate GitLab repository","archived":false,"fork":false,"pushed_at":"2025-04-12T21:59:29.000Z","size":66472,"stargazers_count":10,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-12T22:33:48.968Z","etag":null,"topics":["devtools","hacktoberfest","html","html-checker","html-linter","html-validate","html-validation","web-development","web-standards"],"latest_commit_sha":null,"homepage":"https://html-validate.org","language":"TypeScript","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/html-validate.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":"html-validate"}},"created_at":"2023-08-20T22:14:03.000Z","updated_at":"2025-04-12T21:59:32.000Z","dependencies_parsed_at":"2023-10-21T18:28:32.527Z","dependency_job_id":"29da64f4-6af4-4613-a6ef-332ac93dcc1a","html_url":"https://github.com/html-validate/html-validate","commit_stats":null,"previous_names":["html-validate/html-validate"],"tags_count":286,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/html-validate%2Fhtml-validate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/html-validate%2Fhtml-validate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/html-validate%2Fhtml-validate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/html-validate%2Fhtml-validate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/html-validate","download_url":"https://codeload.github.com/html-validate/html-validate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248703198,"owners_count":21148118,"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":["devtools","hacktoberfest","html","html-checker","html-linter","html-validate","html-validation","web-development","web-standards"],"created_at":"2024-12-23T17:29:20.818Z","updated_at":"2025-04-13T11:10:53.903Z","avatar_url":"https://github.com/html-validate.png","language":"TypeScript","funding_links":["https://github.com/sponsors/html-validate"],"categories":[],"sub_categories":[],"readme":"# html-validate\n\n[![pipeline status](https://gitlab.com/html-validate/html-validate/badges/master/pipeline.svg)](https://gitlab.com/html-validate/html-validate/commits/master)\n[![coverage report](https://gitlab.com/html-validate/html-validate/badges/master/coverage.svg)](https://gitlab.com/html-validate/html-validate/commits/master)\n\nOffline HTML5 validator. Validates either a full document or a smaller\n(incomplete) template, e.g. from an AngularJS or Vue.js component.\n\nRead the full documentation at https://html-validate.org/\n\n## Features\n\n- Can test fragments of HTML, for instance a component template.\n- Does not upload any data to a remote server, all testing is done locally.\n- Strict and non-forgiving parsing. It will not try to correct any incorrect\n  markup or guess what it should do.\n\n## Usage\n\n    npm install -g html-validate\n    html-validate [OPTIONS] [FILENAME..] [DIR..]\n\n## Configuration\n\nCreate `.htmlvalidate.json`:\n\n```js\n{\n  \"extends\": [\n    \"html-validate:recommended\"\n  ],\n\n  \"rules\": {\n    \"close-order\": \"error\",\n    \"void\": [\"warn\", {\"style\": \"omit\"}]\n  }\n}\n```\n\n## Example\n\n```html\n\u003cp\u003e\n  \u003cbutton\u003eClick me!\u003c/button\u003e\n  \u003cdiv id=\"show-me\"\u003e\n    Lorem ipsum\n  \u003c/div\u003e\n\u003c/p\u003e\n```\n\n```text\n  1:1  error  Element \u003cp\u003e is implicitly closed by adjacent \u003cdiv\u003e  no-implicit-close\n  2:2  error  Button is missing type attribute                    button-type\n  6:4  error  Unexpected close-tag, expected opening tag          close-order\n```\n\n## Bundles\n\nThe library comes in four flavours:\n\n- CommonJS full (`dist/cjs/index.js`)\n- CommonJS browser (`dist/cjs/browser.js`)\n- ESM full (`dist/es/index.js`)\n- ESM browser (`dist/es/browser.js`)\n\nThe browser bundle contains a slimmed version without CLI and NodeJS dependencies.\n\n```ts\n/* automatically determine build based on `browser` export condition */\nimport { ... } from \"html-validate\";\n\n/* explicitly use nodejs bundle */\nimport { ... } from \"html-validate/node\";\n\n/* explicitly use browser bundle */\nimport { ... } from \"html-validate/browser\";\n```\n\nSee [running in browser](https://html-validate.org/dev/running-in-browser.html) for details about getting HTML-Validate running in a browser environment.\n\n## Developing\n\n### Prerequisites\n\n- NodeJS 18\n- NPM 7\n\n### Test\n\nTesting is done using jest.\n\n    npm test\n\nor call `jest` directly.\n\nSome tests are autogenerated from documentation examples, use `npm run docs` to build those before running.\n\n### Lint\n\nLinting is done using ESLint.\n\n    npm run eslint\n\nor call `eslint` directly.\n\n### Build\n\n    npm run build\n\nTo build documentation use:\n\n    npm run docs\n\nThe documentation can be served locally using:\n\n    npm start\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhtml-validate%2Fhtml-validate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhtml-validate%2Fhtml-validate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhtml-validate%2Fhtml-validate/lists"}