0.6.15 • Published 1 year ago

litepa11y v0.6.15

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

litepa11y

Litepa11y is a high performance web accessibility issue detector.

You need to have an active instance of puppeteer running with a connection to get started. This library does not open a new browser for you.

Getting Started:

npm i litepa11y --save

Requires node ^13

import { pa11y } from "litepa11y"

pa11y("https://example.com/").then((results) => {
  // Do something with the results
});

litepa11y resolves with an array of objects, containing details about the page and accessibility issues:

{
    documentTitle: 'The title of the page',
    pageUrl: 'The URL that litepa11y was run against',
    issues: [
        {
            code: 'WCAG2AA.Principle1.Guideline1_1.1_1_1.H30.2',
            context: '<a href="https://example.com/"><img src="example.jpg" alt=""/></a>',
            message: 'Img element is the only content of the link, but is missing alt text. The alt text should describe the purpose of the link.',
            selector: 'html > body > p:nth-child(1) > a',
            type: 'error',
            typeCode: 1,
            recurrence: 0
        }
        // more issues...
    ]
}

Runners

litepa11y supports multiple test runners which return different results. The built-in test runners are:

About

This project started as fork of pa11y out of performance needs.

LICENSE

check the license file in the root of the project.

0.6.7

1 year ago

0.6.6

1 year ago

0.6.9

1 year ago

0.5.14

1 year ago

0.5.15

1 year ago

0.5.13

1 year ago

0.6.10

1 year ago

0.6.12

1 year ago

0.6.11

1 year ago

0.6.14

1 year ago

0.6.13

1 year ago

0.6.15

1 year ago

0.6.3

1 year ago

0.6.2

1 year ago

0.6.5

1 year ago

0.6.4

1 year ago

0.6.1

1 year ago

0.6.0

1 year ago

0.5.12

2 years ago

0.5.10

2 years ago

0.5.11

2 years ago

0.5.8

2 years ago

0.5.7

2 years ago

0.5.9

2 years ago

0.5.4

2 years ago

0.5.3

2 years ago

0.5.6

2 years ago

0.5.5

2 years ago

0.5.0

2 years ago

0.5.2

2 years ago

0.5.1

2 years ago

0.4.2

2 years ago

0.4.1

2 years ago

0.4.0

2 years ago

0.3.0

2 years ago

0.3.2

2 years ago

0.3.1

2 years ago

0.2.2

2 years ago

0.2.1

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago

0.0.16

2 years ago

0.0.15

2 years ago

0.0.13

2 years ago

0.0.12

2 years ago

0.0.11

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago