Axe-cli

axe-cli

A CLI for accessibility testing using axe-core

Provides a command line interface for aXe to run quick accessibility tests.

Get it: npm install -g axe-cli

Sample usage:

1
$ axe www.google.com, github.com
1
2
#  --rules flag to set which rules you wish to run
$ axe www.google.com --rules color-contrast,html-has-lang
1
2
#  --tags to tell axe to run all rules that have that specific tag.
axe www.google.com --tags wcag2a
1
2
3
# Saving the results
$ axe www.google.com --save google-site.json
$ axe www.google.com --dir ./google-results/
1
2
# Defining the scope
axe www.google.com --include #main --exclude #aside

GIF FTW!

axe-cli.gif

Suggest a module

Comments