New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

crawlkit-runner-axe

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

crawlkit-runner-axe

A CrawlKit runner for auditing a website with aXe

  • 1.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-50%
Maintainers
1
Weekly downloads
 
Created
Source

aXe runner

Build status npm npm David node Commitizen friendly semantic-release

This runner can be used with CrawlKit in order to audit a website with the aXe accessibility engine.

Install

npm install crawlkit-runner-axe --save

Example

const CrawlKit = require('crawlkit');
const AxeRunner = require('crawlkit-runner-axe');

const crawler = new CrawlKit('http://your/page');
// You could add a finder here in order to audit a whole network of pages
crawler.addRunner('aXe', new AxeRunner());

crawler.crawl()
    .then((data) => {
        console.log(JSON.stringify(data.results, true, 2));
    }, (err) => console.error(err));

Configuring the aXe runner

Passing options

You can pass an options object to the aXe runner like this:

crawler.addRunner('aXe', new AxeRunner(), {
  runOnly: {
      type: 'tag',
      values: ['wcag2aa']
    }
});

For a list of options and the structure of the options object, please consult the aXe API.

Defining context

You can define the context the aXe runner should use like this:

crawler.addRunner('aXe', new AxeRunner(), null, '.my-context');

By default, the context is document. Please bear in mind that only selector contexts work, as the code of the aXe runner itself runs in node.

This project is in no way affiliated with Deque Labs.

Keywords

FAQs

Package last updated on 16 Jan 2017

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc