Skip to content

ApplauseOSS/applause-a11y-fixer

Repository files navigation

applause-a11y-fixer

This command line application runs axe-core accessibility checks against html files or urls. It can return a report of accessibility problems or write the fixed html to a new or existing local file.

(if you are looking for the curated version of the plug-in please click here)

Prerequisites

Quickstart

Setup the application:

npm run setup

Run the linter(s):

npm run lint

Usage

Report violation(s) for the example-file:

node src/cli.js report example.html

Fix violation(s) for the example-file:

node src/cli.js fix example.html example-fixed.html

Options

Review the help to see various options

$ node src/cli.js -h
$ node src/cli.js fix -h
$ node src/cli.js report -h

Flags:

  • Global
    • -r, --rules <rules> Only run checks or fixes against this list of comma separated rule id's. Example: -r "button-name, valid-lang"
  • fix
    • -p, --preview Print the fixed html to the console. When using this rule a target file does not need to be specified.
  • report
    • -j, --json Print the raw Axe violation json data instead of the human readable version.

About

Applause A11Y Validator / Fixer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published