acc-snapshot

0.2.1 • Public • Published

acc-snapshot

Creates accessibility snapshot from DOM and AOM.

Requirements

acc-snapshot requires AOM to be enabled in the browser. See http://wicg.github.io/aom/caniuse.html for instructions.

Usage

The package exports:

  • main class AccessibilitySnapshot
  • reporter class TextReporter
  • extractor classes domProps and focusProps

These can be used to extract AOM information:

let body = document.querySelector("body")
let snapshot = new AccessibilitySnapshot(body)
let reporter = new TextReporter(console.log, [focusProps, domProps])
await snapshot.process(reporter)

License

MIT.

Dependencies (0)

    Dev Dependencies (5)

    Package Sidebar

    Install

    npm i acc-snapshot

    Weekly Downloads

    3

    Version

    0.2.1

    License

    MIT

    Unpacked Size

    11.3 kB

    Total Files

    19

    Last publish

    Collaborators

    • jurokapsiar