# acc-snapshot

> Creates accessibility snapshot from DOM and AOM

Latest version **0.2.1** (published 2019-07-31) · MIT license · 0 weekly downloads

## Install

```sh
npm install acc-snapshot
pnpm add acc-snapshot
yarn add acc-snapshot
bun add acc-snapshot
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.1 |
| Published | 2019-07-31 |
| First published | 2019-07-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 11 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Maintainers | jurokapsiar |
| Keywords | accessibility, snapshot, a11y, AOM |

## Links

- npm: https://www.npmjs.com/package/acc-snapshot
- Repository: https://github.com/jurokapsiar/acc-snapshot
- npm.io page: https://npm.io/package/acc-snapshot

## Recent versions

- 0.2.1 (latest) — 2019-07-31
- 0.2.0 — 2019-07-31
- 0.1.1 — 2019-07-30

## README

# 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:

```js
let body = document.querySelector("body")
let snapshot = new AccessibilitySnapshot(body)
let reporter = new TextReporter(console.log, [focusProps, domProps])
await snapshot.process(reporter)
```

## License

[MIT](LICENSE).

---
_Source: https://npm.io/package/acc-snapshot · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
