@holmdigital/standards
v1.2.2
Published
Machine-readable regulatory database for WCAG, EN 301 549 and the DOS Act
Maintainers
Readme
@holmdigital/standards
Machine-readable regulatory database for WCAG, EN 301 549, and the DOS Act.
Why this package?
This package serves as the Single Source of Truth for accessibility compliance mapping in the HolmDigital ecosystem. It eliminates the need to manually cross-reference standard documents by providing:
- WCAG 2.1 Criteria (Technical Base)
- EN 301 549 (EU Standard Mapping)
- National Laws (Specific legal references for SE, NL, DE, etc.)
It allows developers to query: "Which law mandates WCAG 1.4.3 in Sweden?" and get the exact legal paragraph (Lag (2018:1937) 12 §).
Installation
npm install @holmdigital/standardsFeatures
- Multi-Language Support:
en(Generic / UK PSBAR)sv(Sweden / DOS-lagen)de(Germany / BITV 2.0)fr(France / RGAA)es(Spain / UNE 139803)nl(Netherlands / Digitoegankelijk)en-us(USA / Section 508 & ADA)en-ca(Canada / AODA)
- Risk Assessment: DIGG-aligned risk levels (
critical,high,medium,low). - Remediation: Maps issues to
@holmdigital/componentsfor fixing.
Usage
import {
getEN301549Mapping,
getDOSLagenReference
} from '@holmdigital/standards';
// 1. Get Mapping (Default: English)
const enMapping = getEN301549Mapping('1.4.3');
// Output: { en301549Criteria: "9.1.4.3", ... }
// 2. Get Mapping (Swedish Context)
const svMapping = getEN301549Mapping('1.4.3', 'sv');
// Output: Includes 'dosLagenReference' specific to Swedish law.License
MIT © Holm Digital AB
