{"id":28092551,"url":"https://github.com/curtisj44/html-lint","last_synced_at":"2025-05-13T13:19:52.738Z","repository":{"id":2250763,"uuid":"3205780","full_name":"curtisj44/HTML-Lint","owner":"curtisj44","description":"A code quality bookmarklet and command-line tool","archived":false,"fork":false,"pushed_at":"2021-09-28T21:16:19.000Z","size":451,"stargazers_count":21,"open_issues_count":3,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-13T13:19:47.000Z","etag":null,"topics":["a11y","accessibility","audit","bookmarklet","cli","html","javascript","lint"],"latest_commit_sha":null,"homepage":"","language":"HTML","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/curtisj44.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-01-18T03:43:38.000Z","updated_at":"2023-01-10T17:57:45.000Z","dependencies_parsed_at":"2022-08-31T22:32:31.019Z","dependency_job_id":null,"html_url":"https://github.com/curtisj44/HTML-Lint","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/curtisj44%2FHTML-Lint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/curtisj44%2FHTML-Lint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/curtisj44%2FHTML-Lint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/curtisj44%2FHTML-Lint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/curtisj44","download_url":"https://codeload.github.com/curtisj44/HTML-Lint/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253948512,"owners_count":21988962,"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":["a11y","accessibility","audit","bookmarklet","cli","html","javascript","lint"],"created_at":"2025-05-13T13:19:51.852Z","updated_at":"2025-05-13T13:19:52.727Z","avatar_url":"https://github.com/curtisj44.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HTML-Lint\n\n[![version on NPM](https://img.shields.io/npm/v/html-lint.svg?style=flat-square)](https://www.npmjs.com/package/html-lint)\n[![weekly downloads on NPM](https://img.shields.io/npm/dw/html-lint.svg?colorB=000000\u0026style=flat-square)](https://www.npmjs.com/package/html-lint)\n\nHTML-Lint is a tool designed to supplement HTML validation by identify coding practices that pass validation, but are less than ideal.\n\n## How to Use:\n\n### Option 1: Bookmarklet\n\n1. Copy the code below:\n   ```js\n   javascript: (function(){'use strict';var script = document.createElement('script');script.src = 'https://curtisj44.github.io/HTML-Lint/dist/htmlLint.min.js';script.id = 'html-lint-js';document.body.appendChild(script);}());\n   ```\n1. Create a new bookmark.\n1. Set the name to “HTML-Lint” and paste the above as the URL.\n\n### Option 2: CLI\n\n![Sample verbose output](cli-output-verbose.jpg)\n\nAvailable on NPM: [npmjs.com/package/html-lint](https://www.npmjs.com/package/html-lint): `npm install html-lint -g`.\n\n#### Usage\n\n```\nhtml-lint \u003curl\u003e \u003cfilename\u003e\n```\n\n#### Options\n\n```\n--strict     Return a non-zero exit code if lint errors are found\n--verbose    Enable verbose output\n```\n\n#### Examples\n\n```\nhtml-lint http://www.google.com\nhtml-lint http://www.google.com --verbose\nhtml-lint http://www.google.com foo\n```\n\n---\n\n## Development\n\n### Getting Started\n\n1. Have the following requirements installed: [Node](http://nodejs.org/), [NPM](https://www.npmjs.org/), and [PhantomJS](http://phantomjs.org/)\n1. Clone the repo: `git clone https://github.com/curtisj44/HTML-Lint.git`\n1. Run `npm install`\n1. Run `gulp`\n\n### Tasks\n\n- `gulp` → compiles Sass to CSS, concatenates JS, minifies CSS and JS, and watches\n- `gulp watch` → runs default `gulp` task and then watches for changes\n\n### Testing the CLI locally\n\n1. Run `node html-lint.js \u003curl\u003e`\n\n\u003c!--\n### Publishing\n\nPoorly hidden notes to myself:\n\n1. Run `npm version [major|minor|patch]` to bump the version and tag the release\n1. Run `npm publish` to push the latest to NPM\n--\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcurtisj44%2Fhtml-lint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcurtisj44%2Fhtml-lint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcurtisj44%2Fhtml-lint/lists"}