{"id":15932779,"url":"https://github.com/htmlhint/chai-htmlhint","last_synced_at":"2025-07-11T01:04:38.192Z","repository":{"id":57196550,"uuid":"56355433","full_name":"htmlhint/chai-htmlhint","owner":"htmlhint","description":"Extends Chai with assertions for HTMLHint","archived":false,"fork":false,"pushed_at":"2025-06-05T07:51:08.000Z","size":13,"stargazers_count":3,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-27T06:37:58.677Z","etag":null,"topics":["chai","hint","htmlhint"],"latest_commit_sha":null,"homepage":"","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":null,"contributing":"CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":"CODE_OF_CONDUCT.md","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":{"open_collective":"htmlhint"}},"created_at":"2016-04-15T23:31:18.000Z","updated_at":"2025-06-05T07:51:10.000Z","dependencies_parsed_at":"2025-06-27T06:31:45.137Z","dependency_job_id":"ba17bf18-22bc-49bd-bbc6-4a185103843a","html_url":"https://github.com/htmlhint/chai-htmlhint","commit_stats":null,"previous_names":["molant/chai-htmlhint"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/htmlhint/chai-htmlhint","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/htmlhint%2Fchai-htmlhint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/htmlhint%2Fchai-htmlhint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/htmlhint%2Fchai-htmlhint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/htmlhint%2Fchai-htmlhint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/htmlhint","download_url":"https://codeload.github.com/htmlhint/chai-htmlhint/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/htmlhint%2Fchai-htmlhint/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264214564,"owners_count":23574189,"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":["chai","hint","htmlhint"],"created_at":"2024-10-07T02:03:53.165Z","updated_at":"2025-07-11T01:04:38.185Z","avatar_url":"https://github.com/htmlhint.png","language":"JavaScript","funding_links":["https://opencollective.com/htmlhint"],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\n  \u003cbr\u003e\n  Chai HTMLHint\n  \u003cbr\u003e\n\u003c/h1\u003e\n\n\u003ch4 align=\"center\"\u003eExtends Chai with assertions for HTMLHint\u003c/h4\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://www.npmjs.com/package/chai-htmlhint\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/v/chai-htmlhint\" alt=\"npm Version\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://www.npmjs.com/package/chai-htmlhint\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/dm/chai-htmlhint.svg\" alt=\"npm count\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"#usage\"\u003eHow To Use\u003c/a\u003e • \u003ca href=\"/CONTRIBUTING.md\"\u003eContributing\u003c/a\u003e • \u003ca href=\"https://htmlhint.com\"\u003eWebsite\u003c/a\u003e\n\u003c/p\u003e\n\n# Usage\nYou just have to pass the html you want to validate like this:\n\n```javascript\nvar myhtml = '\u003ch1\u003emy html\u003c/h1\u003e';\nexpect(myhtml).to.be.validHtml;\n```\n\nThe default rules are:\n\n```json\n{\n\t\"alt-require\": true,\n\t\"attr-lowercase\": true,\n\t\"attr-no-duplication\": true,\n\t\"attr-unsafe-chars\": true,\n\t\"attr-value-double-quotes\": true,\n\t\"doctype-first\": true,\n\t\"doctype-html5\": true,\n\t\"id-unique\": true,\n\t\"inline-script-disabled\": false,\n\t\"inline-style-disabled\": false,\n\t\"space-tab-mixed-disabled\": true,\n\t\"spec-char-escape\": true,\n\t\"src-not-empty\": true,\n\t\"style-disabled\": true,\n\t\"tag-pair\": true,\n\t\"tag-self-close\": true,\n\t\"tagname-lowercase\": true,\n\t\"title-require\": true\n}\n```\n\nIf you want to override you just need a valid `.htmlhintrc` file in the root of your project\n\n## LICENCE\n\nProject initially created by [@molant](https://github.com/molant) and transferred to the [HTMLHint](https://github.com/htmlhint) organization.\n\n\u003ca href=\"https://htmlhint.com\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/htmlhint/HTMLHint/main/website/src/assets/img/htmlhint.png\" alt=\"Logo HTMLHint\" height=\"65\" width=\"65\"\u003e\u003c/a\u003e\n\n[MIT License](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhtmlhint%2Fchai-htmlhint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhtmlhint%2Fchai-htmlhint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhtmlhint%2Fchai-htmlhint/lists"}