eaa-kit 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -8,8 +8,9 @@ European Accessibility Act (in force since 28 June 2025), the BFSG in Germany an
8
8
  in Austria.
9
9
 
10
10
  ```bash
11
- npx eaa-kit audit ./dist # WCAG 2.2 AA report over built HTML
12
- npx eaa-kit statement # Barrierefreiheitserklärung from eaa.config
11
+ npx eaa-kit audit # WCAG 2.2 AA report; finds your build itself
12
+ npx eaa-kit init # write an eaa.config.json
13
+ npx eaa-kit statement # Barrierefreiheitserklärung from that config
13
14
  ```
14
15
 
15
16
  > **Not legal advice.** eaa-kit reports what an automated engine can and cannot determine
@@ -22,8 +23,9 @@ npx eaa-kit statement # Barrierefreiheitserklärung from eaa.config
22
23
  pnpm add -D eaa-kit # npm i -D eaa-kit
23
24
  ```
24
25
 
25
- Node 22.22 or newer. jsdom, which the browserless engine is built on, does not support
26
- Node 20.
26
+ Node 22.22, 24.15 or 26 and newer. jsdom, which the browserless engine is built on,
27
+ supports only the even-numbered release lines, so the odd-numbered ones (23, 25) are not
28
+ supported here either.
27
29
 
28
30
  ## What it does
29
31
 
@@ -36,6 +38,13 @@ rules that need layout and CSS.
36
38
  eaa-kit audit ./dist --fail-on serious
37
39
  ```
38
40
 
41
+ Sites that render on a server and never write HTML to disk — Next.js without a static
42
+ export, Nuxt, SvelteKit, anything behind a CMS — are audited running instead:
43
+
44
+ ```bash
45
+ eaa-kit audit --url http://localhost:3000
46
+ ```
47
+
39
48
  **Writes the statement.** A Barrierefreiheitserklärung from one config file, in German or
40
49
  English, as Markdown or HTML, naming the statute and supervisory body of Austria,
41
50
  Switzerland or Germany — and optionally listing the barriers a real audit found.
@@ -1,14 +1,5 @@
1
1
  import { t as ImpactLevel } from "../impact-EEB9ZXmC.js";
2
2
  //#region src/cli/audit.d.ts
3
- /**
4
- * The engines and the machine-readable reporters are imported where they are
5
- * used, not at the top of the file.
6
- *
7
- * jsdom costs 630 ms to load and axe-core another 94 ms, and a static import
8
- * here charges that to every invocation — `eaa-kit statement`, `--help` and a
9
- * mistyped flag included, none of which parse a single page. The audit path
10
- * pays the same cost either way, a few milliseconds later.
11
- */
12
3
  declare const OUTPUT_FORMATS: readonly ['console', 'json', 'sarif', 'html'];
13
4
  type OutputFormat = (typeof OUTPUT_FORMATS)[number];
14
5
  //#endregion
@@ -18,7 +18,7 @@ function eaaKit(options = {}) {
18
18
  logger.info("skipped (enabled: false)");
19
19
  return;
20
20
  }
21
- const { runAuditCommand } = await import("../audit-VtuUOuyX.js");
21
+ const { runAuditCommand } = await import("../audit-CqrR9pIO.js");
22
22
  const { exitCode } = await runAuditCommand(fileURLToPath(dir), {
23
23
  ...options.failOn ? { failOn: options.failOn } : {},
24
24
  ...options.include ? { include: options.include } : {},
@@ -0,0 +1,2 @@
1
+ import { r as runAuditCommand } from "./audit-D4gju2BT.js";
2
+ export { runAuditCommand };