@d-zero/a11y-check-axe-scenario
v0.5.35
Published
Accessibility Checker Axe Scenario
Downloads
945
Readme
@d-zero/a11y-check-axe-scenario
axe-core を用いたアクセシビリティチェックシナリオ。@d-zero/a11y-check-core の scenarioRunner に渡して使う。
Installation
yarn add @d-zero/a11y-check-axe-scenarioPeer dependencies: axe-core, puppeteer。
Usage
import { scenarioAxe } from '@d-zero/a11y-check-axe-scenario';
import { scenarioRunner } from '@d-zero/a11y-check-core';
const results = await scenarioRunner(['https://example.com'], [scenarioAxe()], {
cache: true,
screenshot: true,
});オプション(screenshot / cache / cacheDir / lang)は型定義を参照。lang のデフォルトは 'ja'。
