Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
@daniel.husar/a11y-static-report
Advanced tools
Run accessibility report on static pages via axe-core
It starts the static webserver and look up for all html
files inside of it. From the html files we generate routes and use them as input for a11y-report.
yarn add --dev @daniel.husar/a11y-static-report
or
npm install --dev @daniel.husar/a11y-static-report
import a11yStaticReport from '@daniel.husar/a11y-static-report';
(async () => {
await a11yStaticReport({
folder: 'public',
});
})();
Prints accessibility report with logger function and returns promise that resolves for not errors or reject if there is any error.
Property | Type | Default | Description |
---|---|---|---|
port | number | 9001 | Port on which static server will start. |
folder | string | public | Folder with static files to serve. |
excludeFiles | array<string∣RegExp> | [] | Array of files to ignore. Could be string or RegExp. Example ['blog/index.html', /^de\/blog/] |
debug | boolean | false | Prints debug messages. |
Every other option that you pass, will be forwarded into a11y-report.
yarn add --dev @daniel.husar/a11y-static-report
yarn a11y-static-report --folder=out
For more complex config options you can use .a11yrc
file in the root of your project:
.a11yrc
module.exports = {
port: 9001,
folder: 'out',
reporter: 'simple'
}
MIT
FAQs
Accessibility report via axe for static pages
We found that @daniel.husar/a11y-static-report demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.