gulp-a11y

0.1.2 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i gulp-a11y

Weekly Downloads

53

Version

0.1.2

License

MIT

Last publish

Collaborators

  • mpezzi