A11y

a11y

Easy accessibility audits powered by the Chrome Accessibility Tools

a11y conducts audits using the Chrome Accessibility Tools and PhantomJS and lists out the issues for a given URL.

Get it: npm install [-g] a11y

Sample CLI usage:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
  Runs an accessibility audit against a URL

  Usage
    $ a11y <url>

  Options
    --viewport-size=<size>  Set the viewport size
    --delay                 Set the delay capturing the page
    --verbose               Display more information

  Examples
    $ a11y todomvc.com
    $ a11y http://todomvc.com https://google.com
    $ a11y index.html -=viewport-size=1024x768

Sample API usage:

1
2
3
4
5
6
const a11y = require('a11y');

a11y('nmotw.in', (err, reports) => {
    const audit = reports.audit; // `a11y` Formatted report
    const report = reports.report; // DevTools Accessibility Audit formatted report
});

GIF FTW

a11y.gif

Suggest a module

Comments