npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

pa11y-ci-reporter-cli-summary

v4.0.1

Published

Pa11y CI reporter that outputs the URL and a count of the errors/warning/notices for each page to stdout

Downloads

734

Readme

Pa11y CI CLI Summary Reporter

Pa11y CI CLI Summary Reporter outputs a summary of Pa11y CI results to stdout - only the URL and a count of the errors/warning/notices for each page - versus the complete results that the built-in CLI reporter outputs. An example screenshot is shown below.

screenshot of Pa11y CI CLI Summary Reporter output

As shown in the preceding example, in some cases the reported URL is longer than specified for the pa11y-ci analysis, which is used to set the URL column width, so in that case the URL is truncated and the trailing portion is displayed.

Installation

Install Pa11y CI CLI Summary Reporter via npm.

npm install pa11y-ci-reporter-cli-summary

Note: pa11y-ci and pa11y-ci-reporter-cli-summary must either both be installed globally or both be installed locally. Using a mixed configuration can result in the reporter not being found.

Usage

Pa11y CI CLI Summary Reporter is a Pa11y CI compatible reporter. As with all reporters, it can be specified via the CLI or a Pa11y CI configuration file. Complete details on using reporters can be found in the Pa11y CI documentation.

Using via CLI

The reporter can be used with Pa11y CI via the CLI as follows:

pa11y-ci --reporter=pa11y-ci-reporter-cli-summary https://pa11y.org/

When specified via the CLI:

  • Only one reporter can be used. If multiple reporters are required, they must be specified via a Pa11y CI configuration file.
  • Reporter configuration options cannot be specified and the default values are used (see below)
  • If a reporter is specified via the CLI it overrides the Pa11y CI configuration file settings for reporters

Using via configuration file

You can specify reporters in a Pa11y CI configuration file in the defaults.reporters property (an array).

{
  "defaults": {
    "reporters": ["pa11y-ci-reporter-cli-summary"]
  },
  "urls": ["https://pa11y.org/"]
}

The reporter can also be used with one optional configuration option:

  • showPageErrors: A Boolean value specifying whether page errors are output with the Pa11y CI results (default: true). Page errors are cases where Pa11y CI fails to execute (for example DNS resolution error, execution timeout). A count of the page errors, if any occur, is always shown in the total count.

In this case the reporter is specified as an array, with the first element a string with the reporter name and the second element an object with the configuration options.

{
  "defaults": {
    "reporters": [
      ["pa11y-ci-reporter-cli-summary", { "showPageErrors": false }]
    ]
  },
  "urls": ["https://pa11y.org/"]
}

Multiple reporters can also be used as shown below:

{
  "defaults": {
    "reporters": [
      "pa11y-ci-reporter-cli-summary",
      ["pa11y-ci-reporter-html", { "destination": "./reports" }]
    ]
  },
  "urls": ["https://pa11y.org/"]
}