html string in, axe-core results out.
npm install --save-dev axe-html
import { analyze } from "axe-html";
const axeResults = await analyze("<img src='abc.png' />", options);
See the typescript typings for more.
html string in, axe-core results out.
npm install --save-dev axe-html
import { analyze } from "axe-html";
const axeResults = await analyze("<img src='abc.png' />", options);
See the typescript typings for more.