ryuran / gulp-a11y

A Gulp plugin for a11y to run accessibility audits on html files.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gulp a11y

Build Status

A Gulp plugin for a11y to run accessibility audits on html files.

Installation

npm install gulp-a11y

Usage

var a11y = require('gulp-a11y');

gulp.task('audit', function () {
  return gulp.src('./**/*.html')
    .pipe(a11y())
    .pipe(a11y.reporter());
});

Options

You can pass any options directly to a11y, example:

var a11y = require('gulp-a11y');

gulp.task('audit', function () {
  return gulp.src('./**/*.html')
    .pipe(a11y({
      viewportSize: '800x600',
      delay: 1
    }))
    .pipe(a11y.reporter());
});

About

A Gulp plugin for a11y to run accessibility audits on html files.

License:MIT License


Languages

Language:JavaScript 100.0%