JSPM

pa11y-express-render

0.0.5
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q13458F
  • License MIT

An express middleware to check the accessibility of your response with pa11y on render.

Package Exports

  • pa11y-express-render

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (pa11y-express-render) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

pa11y-express-render

An express middleware to check the accessibility of your response with pa11y on render, by adding console-logs with the errors/warnings/notices of your response to your html response.

How to install

npm install pa11y-express-render

Usage

var pa11ymw = require('pa11y-express-render');

app.use(pa11ymw(options));

Options

All options are optional

  • active: activate the middleware (Boolean | default: false)
  • pa11yOptions: tell pa11y what to do, find more in the pa11y documentation/configuration (Object | default: {})