@shapea11y/headings
v0.1.1
Published
Heading outline from an accessibility tree. npm @shapea11y.
Readme
@shapea11y/headings
Heading outline from an accessibility tree.
npm @shapea11y.
Evidence: tree.
For agents
Use this when you need a TOC, not a guess.
import { getHeadings, toOutline } from "@shapea11y/headings";
const headings = getHeadings(tree);
console.log(toOutline(headings));From a URL: shapea11y headings <url>.
For humans
One job: list headings in order with their levels.
