Gathering detailed insights and metrics for @sa11y/assert
Gathering detailed insights and metrics for @sa11y/assert
npm install @sa11y/assert
Typescript
Module System
Min. Node Version
Node Version
NPM Version
88.8
Supply Chain
75.3
Quality
94.3
Maintenance
100
Vulnerability
98.9
License
TypeScript (88.06%)
JavaScript (9.06%)
HTML (2.75%)
Shell (0.12%)
Verify real, reachable, and deliverable emails with instant MX records, SMTP checks, and disposable email detection.
Total Downloads
1,516,158
Last Day
276
Last Week
10,342
Last Month
45,241
Last Year
497,896
BSD-3-Clause License
92 Stars
710 Commits
23 Forks
11 Watchers
9 Branches
43 Contributors
Updated on Mar 06, 2025
Minified
Minified + Gzipped
Latest Version
7.0.0
Package Id
@sa11y/assert@7.0.0
Unpacked Size
10.07 kB
Size
3.58 kB
File Count
6
NPM Version
lerna/6.6.2/node@v18.20.5+x64 (linux)
Node Version
18.20.5
Published on
Jan 01, 2025
Cumulative downloads
Total Downloads
2
@sa11y/assert
Provides assertAccessible API to check DOM for accessibility issues
1import { assertAccessible } from '@sa11y/assert'; 2import { full } from '@sa11y/preset-rules'; 3 4// Setup DOM in the state to be tested for accessibility 5// ... 6// Assert that the current dom has no a11y issues 7// Defaults to using 8// - default document context e.g. JSDOM in Jest 9// - base ruleset from @sa11y/preset-rules and 10// - A11yError.checkAndThrow from @sa11y/format 11await assertAccessible(); 12 13// Can be used to test accessibility of a specific HTML element 14const elem = document.getElementById('foo'); 15await assertAccessible(elem); 16 17// Can be overridden to use custom dom, ruleset or formatter 18// - Specifying null for formatter will result in using JSON stringify 19await assertAccessible(document, full, null);
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
update tool detected
Details
Reason
30 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 10
Reason
no binaries found in the repo
Reason
all dependencies are pinned
Details
Reason
SAST tool is run on all commits
Details
Reason
license file detected
Details
Reason
30 out of 30 merged PRs checked by a CI test -- score normalized to 10
Reason
security policy file detected
Details
Reason
project has 1 contributing companies or organizations -- score normalized to 3
Details
Reason
8 existing vulnerabilities detected
Details
Reason
Found 0/2 approved changesets -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Score
Last Scanned on 2025-03-07T02:45:43Z
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn MoreLast Day
-43.7%
276
Compared to previous day
Last Week
-9.8%
10,342
Compared to previous week
Last Month
1.3%
45,241
Compared to previous month
Last Year
4.3%
497,896
Compared to previous year