translate

gulp-a11y


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());
});

Rating

ABOUT

LESS COMMENTS

MESSAGE REVIEW OK

Ok