{"id":22423293,"url":"https://github.com/prantlf/grunt-accessibility-html-reporter","last_synced_at":"2026-01-07T05:03:38.168Z","repository":{"id":57254560,"uuid":"111859552","full_name":"prantlf/grunt-accessibility-html-reporter","owner":"prantlf","description":"Formats JSON report of the grunt-accessibility task to HTML.","archived":false,"fork":false,"pushed_at":"2019-12-27T12:46:09.000Z","size":281,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-01T17:06:38.651Z","etag":null,"topics":["accessibility","grunt-accessibility","grunt-task","html","reporter"],"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/prantlf.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2017-11-24T00:09:35.000Z","updated_at":"2019-09-23T10:45:24.000Z","dependencies_parsed_at":"2022-08-31T09:00:15.856Z","dependency_job_id":null,"html_url":"https://github.com/prantlf/grunt-accessibility-html-reporter","commit_stats":null,"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prantlf%2Fgrunt-accessibility-html-reporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prantlf%2Fgrunt-accessibility-html-reporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prantlf%2Fgrunt-accessibility-html-reporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prantlf%2Fgrunt-accessibility-html-reporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/prantlf","download_url":"https://codeload.github.com/prantlf/grunt-accessibility-html-reporter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245791897,"owners_count":20672667,"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":["accessibility","grunt-accessibility","grunt-task","html","reporter"],"created_at":"2024-12-05T18:09:54.595Z","updated_at":"2026-01-07T05:03:33.127Z","avatar_url":"https://github.com/prantlf.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# grunt-accessibility-html-reporter\n\n[![NPM version](https://badge.fury.io/js/grunt-accessibility-html-reporter.png)](http://badge.fury.io/js/grunt-accessibility-html-reporter)\n[![Build Status](https://travis-ci.org/prantlf/grunt-accessibility-html-reporter.svg?branch=master)](https://travis-ci.org/prantlf/grunt-accessibility-html-reporter)\n[![Dependency Status](https://david-dm.org/prantlf/grunt-accessibility-html-reporter.svg)](https://david-dm.org/prantlf/grunt-accessibility-html-reporter)\n[![devDependency Status](https://david-dm.org/prantlf/grunt-accessibility-html-reporter/dev-status.svg)](https://david-dm.org/prantlf/grunt-accessibility-html-reporter#info=devDependencies)\n[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)\n\n[![NPM Downloads](https://nodei.co/npm/grunt-accessibility-html-reporter.png?downloads=true\u0026stars=true)](https://www.npmjs.com/package/grunt-accessibility-html-reporter)\n\nA custom reporter for [grunt-accessibility] - the HTML accessibility checking task - which formats the validation results to HTML. There is a Grunt task available for converting already written report files, which uses this reporter - [grunt-accessibility-html-report-converter].\n\n**Notice**: This project contained the Grunt task for the report format conversion in the version 0.0.1. If you look for this Grunt task, upgrade your project to depend on [grunt-accessibility-html-report-converter], which cartries on providing the original functionality.\n\n## Installation\n\nThe reporter is usually installed and used together with other development tasks:\n\n```shell\n$ npm install grunt-accessibility-html-reporter --save-dev\n```\n\n## Usage\n\nYou can use the reporter programmatically to process validation results as an object in JavaScript. For example, for converting a JSON report file to a HTML report file:\n\n```js\nconst report = require('grunt-accessibility-html-reporter')\nconst input = fs.readFileSync('report.json', 'utf-8')\nconst results = JSON.parse(input)\nconst output = report(results, {\n  showFileNameOnly: false\n})\nfs.writeFileSync('report.html', output, 'utf-8')\n```\n\n### Options\n\n#### showFileNameOnly\nType: `Boolean`\nDefault value: `false`\n\nCuts the directory from tested HTML files, when creating page titles from in the report. If you use unique names for files alone, you will not get too long page titles, if you flip this flag tp `true`.\n\n#### showCommonPathOnly\nType: `Boolean`\nDefault value: `true`\n\nCuts the same initial part of the path from tested HTML files, when the paths are used for page titles in the report. If you use sub-directories to organize your files, this option will make the file paths in the report short, but still unique. The default is flipped to `true` already.\n\n\n## Contributing\n\nIn lieu of a formal styleguide, take care to maintain the existing coding\nstyle.\n\n## Release History\n\n * 2018-05-14   v3.1.0   Allow cutting the same initial part of the path from tested HTML files for displaying purposes\n * 2018-04-27   v3.0.0   Dropped support of Node.js 4\n * 2018-03-05   v2.2.0   Allow generating page titles from file names without directory\n * 2018-03-04   v2.1.0   Add filtering and accessibility to the reports\n * 2018-03-01   v2.0.2   Add \\\u003cmeta charset=\"utf-8\"\\\u003e to the HTML report page\n * 2018-02-19   v2.0.0   Change the HTML format to look like Koa11y reports\n * 2018-02-19   v1.0.0   Change column numbers from zero-based to one-based\n * 2017-11-25   v0.1.1   Support Node.js \u003c 7\n * 2017-11-25   v0.1.0   Converted to a pure reporter module; the Grunt task\n                         moved to grunt-accessibility-html-report-converter\n * 2017-11-22   v0.0.1   Initial release\n\n## License\n\nCopyright (c) 2017-2019 Ferdinand Prantl\n\nLicensed under the MIT license.\n\n[node]: https://nodejs.org\n[npm]: https://npmjs.org\n[package.json]: https://docs.npmjs.com/files/package.json\n[Grunt]: https://gruntjs.com\n[Gruntfile]: https://gruntjs.com/sample-gruntfile\n[Getting Gtarted]: https://github.com/gruntjs/grunt/wiki/Getting-started\n[grunt-accessibility]: https://github.com/yargalot/grunt-accessibility\n[grunt-accessibility-html-report-converter]: https://github.com/prantlf/grunt-accessibility-html-report-converter\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprantlf%2Fgrunt-accessibility-html-reporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprantlf%2Fgrunt-accessibility-html-reporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprantlf%2Fgrunt-accessibility-html-reporter/lists"}