Socket
Socket
Sign inDemoInstall

gulp-axe-core

Package Overview
Dependencies
172
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    gulp-axe-core

Gulp plugin for axe-core


Version published
Maintainers
1
Created

Readme

Source

gulp-axe-core

Package Quality

Gulp plugin to use axe-core

Inspired by grunt-axe-webdriver.

Install

$ npm install --save-dev gulp-axe-core

The task

Usage

With Chrome (default)
var gulp = require('gulp');
var axeCore = require('gulp-axe-core');

gulp.task('axe', function() {
  var options = {
			saveOutputIn: 'allHtml.json'
	};
	return gulp.src('src/file2.html')
		.pipe(axeCore(options));
});

With PhantomJS
var gulp = require('gulp');
var axeCore = require('gulp-axe-core');

gulp.task('axe', function() {
  var options = {
			saveOutputIn: 'allHtml.json',
			browser: 'phantomjs'
	};
	return gulp.src('src/file2.html')
		.pipe(axeCore(options));
});

Options

Type: Object Default value:

{
  browser: 'phantomjs',
  threshold: 0,
	folderOutputReport: 'aXeReports',
	saveOutputIn: ''
}
threshold

Type: Number Default value: 0

A number that represents the maximum number of allowable violations. Each violation represents a rule that fails, it may fail for an number of nodes. It is recommended that this value not be changed. A negative value will prevent failure whatever the number of violations.

browser

Type: String Default value: chrome

Which browser to run the tests in.

saveOutputIn

Type: String Default value: ''

An optional file to which the results of the accessibility scans will be written as a JSON Array of results objects.

folderOutputReport

Type: String Default value: 'aXeReports'

An optional folder to indicate where the output will be saved.

Release History

Read the full changelog.

License

MIT © Felix Zapata

Keywords

FAQs

Last updated on 27 Aug 2016

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc