ARIA Current Navigation State Auditor
Start with a caller-owned navigation snapshot. The auditor does not touch your DOM.
- Use Node 18 or newer.
- Run
npm test. - Copy
examples/basic.mjsand replace its snapshot with yours. - Review every error and warning with an accessibility owner before changing markup.
Minimal use
import { auditAriaCurrentNavigation } from "./src/index.js";
const report = auditAriaCurrentNavigation(groups);
if (!report.summary.pass) console.error(report.groups);
Use failOnWarning: true only when warnings are intended to block your own CI. Read README.md and INTEGRATION.md before production use.