1.1.0 • Published 5 years ago

tw-accessibility-auditor v1.1.0

Weekly downloads
1
License
ISC
Repository
-
Last release
5 years ago

Accessibility Auditor

Generates a JSON report based on the aXe accessibility auditor. Takes screenshots of each element in violation of accessibility guidelines.

Usage

const auditor = require('tw-accessibility-auditor');
const page = 'http://www.thrillworks.com';
const pages = [
  'http://www.timhortons.com/ca/en/',
  'http://www.timhortons.com/ca/en/menu/tea.php'
];

(async () {
  const singlePageResult = await auditor.audit(page);
  const multiplePageResult = await auditor.auditAll(pages);
})();