0.3.0 • Published 5 years ago

@farskid/a11y v0.3.0

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

A11y

Build Status PRs Welcome license

An experimental attempt to run accessibility insights, using different insight engines.

How to install

npm install @farskid/a11y --save-dev

or

yarn add @farskid/a11y -D

How it works

The command line runs two engines, pa11y and axe core, gathers their respenctive insights, prints the report to the stdout and stores the results in a11y-report-pa11y.json and a11y-report-axecore.json inside a directory that you can define.

Example

Running from command line:

a11y --url https://localhost:3000 --out ./reports/

API

Command line optionDescriptopnExampleRequiredDefault
--urlSpecify the url to look intohttp://localhost:3000Yes-
--outSpecify the output directoty for stored reports./reports/No./
--standardSpecify the standard to test against (Supported Standards: WCAG2A,WCAG2AA,Section508)Section508NoWCAG2A

Note: --out will create all parent directories that do not exist recursively!

Note: Standards are case sensitive!

Roadmap

  • Sync stored issue interface of engines
  • Possible integration with Cypress to inspect the issues in action
  • Visualize the stored issues in a generated HTML with reasonable styles

License

MIT

Made by Farzad YZ @farzad_yz.