{"id":24983694,"url":"https://github.com/posthtml/posthtml-hint","last_synced_at":"2025-04-11T20:52:08.466Z","repository":{"id":4294953,"uuid":"52660489","full_name":"posthtml/posthtml-hint","owner":"posthtml","description":"HTML HINT Plugin","archived":false,"fork":false,"pushed_at":"2023-02-28T05:17:42.000Z","size":970,"stargazers_count":19,"open_issues_count":6,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-10-29T21:06:05.253Z","etag":null,"topics":[],"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/posthtml.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2016-02-27T09:58:41.000Z","updated_at":"2023-08-10T06:11:59.000Z","dependencies_parsed_at":"2023-02-18T03:10:16.093Z","dependency_job_id":"ed62b187-3230-4cfb-86cd-e47882d27a4c","html_url":"https://github.com/posthtml/posthtml-hint","commit_stats":{"total_commits":69,"total_committers":6,"mean_commits":11.5,"dds":0.6376811594202898,"last_synced_commit":"4fdf3ea9c886f71d8eb6d83986602e8d69efcff4"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/posthtml%2Fposthtml-hint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/posthtml%2Fposthtml-hint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/posthtml%2Fposthtml-hint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/posthtml%2Fposthtml-hint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/posthtml","download_url":"https://codeload.github.com/posthtml/posthtml-hint/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248480516,"owners_count":21110936,"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":[],"created_at":"2025-02-04T09:20:19.715Z","updated_at":"2025-04-11T20:52:08.431Z","avatar_url":"https://github.com/posthtml.png","language":"JavaScript","readme":"[![NPM][npm]][npm-url]\n[![Deps][deps]][deps-url]\n[![Coverage][cover]][cover-url]\n[![Standard Code Style][style]][style-url]\n[![Chat][chat]][chat-badge]\n\n# Hint Plugin \u003cimg align=\"right\" width=\"200\" height=\"220\" title=\"PostHTML\" src=\"http://posthtml.github.io/posthtml/logo.svg\"\u003e\n\n## Install\n\n```bash\nnpm i -D posthtml-hint\n```\n\n## Usage\n\n#### Options\n\n**Rules [String|Object]**\n\n**[Rules Reference](https://github.com/yaniswang/HTMLHint/wiki/Rules)**\n\n```js\nconst hint = require('posthtml-hint')('./path/to/.htmlhintrc')\n```\n\n## Example\n\n```js\nconst { readFileSync } = require('fs')\n\nconst posthtml = require('posthtml')\n\nconst hint = require('posthtml-hint')(/* options */)\nconst html = readFileSync('./index.html', 'utf8')\n\nposthtml([ hint ])\n  .process(html)\n  .then(result =\u003e console.log(result.html))\n```\n\n#### Console\n\n```bash\nPostHTML HINT\n-------------\n\n✖ error [10:12]\nSpecial characters must be escaped : [ \u003e ].\n\n✖ error [12:3]\nSpecial characters must be escaped : [ \u003c ].\n\n✖ error [12:21]\nSpecial characters must be escaped : [ \u003c ].\n\n✖ error [12:30]\nSpecial characters must be escaped : [ \u003e ].\n\n✖ error [15:17]\nTag must be paired, no start tag: [ \u003c/h1\u003e ]\n\n⚠  5 Errors\n```\n\n## Maintainers\n\n\u003ctable\u003e\n  \u003ctbody\u003e\n   \u003ctr\u003e\n    \u003ctd align=\"center\"\u003e\n      \u003cimg width=\"150 height=\"150\"\n      src=\"https://avatars.githubusercontent.com/u/5419992?v=3\u0026s=150\"\u003e\n      \u003cbr /\u003e\n      \u003ca href=\"https://github.com/michael-ciniawsky\"\u003eMichael Ciniawsky\u003c/a\u003e\n    \u003c/td\u003e\n   \u003c/tr\u003e\n  \u003ctbody\u003e\n\u003c/table\u003e\n\n## Contributing\n\nSee [PostHTML Guidelines](https://github.com/posthtml/posthtml/tree/master/docs) and [contribution guide](CONTRIBUTING.md).\n\n## LICENSE\n\n[MIT](LICENSE)\n\n[npm]: https://img.shields.io/npm/v/posthtml-hint.svg\n[npm-url]: https://npmjs.com/package/posthtml-hint\n\n[deps]: https://david-dm.org/posthtml/posthtml-hint.svg\n[deps-url]: https://david-dm.org/posthtml/posthtml-hint\n\n[travis]: http://img.shields.io/travis/posthtml/posthtml-hint.svg\n[travis-url]: https://travis-ci.org/posthtml/posthtml-hint\n\n[cover]: https://coveralls.io/repos/github/posthtml/posthtml-hint/badge.svg?branch=master\n[cover-url]: https://coveralls.io/github/posthtml/posthtml-hint?branch=master\n\n[style]: https://img.shields.io/badge/code%20style-standard-yellow.svg\n[style-url]: http://standardjs.com/\n\n[chat]: https://badges.gitter.im/posthtml/posthtml.svg\n[chat-badge]: https://gitter.im/posthtml/posthtml?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge\"\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fposthtml%2Fposthtml-hint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fposthtml%2Fposthtml-hint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fposthtml%2Fposthtml-hint/lists"}