Skip to content

Files

Latest commit

2088564 · Jun 17, 2016

History

History
54 lines (35 loc) · 1.14 KB

README.md

File metadata and controls

54 lines (35 loc) · 1.14 KB

gulp-html Build Status NPM Version Dependency Status

gulp plugin for HTML validation, using the vnu.jar

Install

Run npm install gulp-html.

Usage

var gulp   = require('gulp');
var validator = require('gulp-html');

gulp.task('html', function() {
  return gulp.src('src/index.html')
  .pipe(validator())
  .pipe(gulp.dest('dist/'));
});

Options

The options object supports the same options as the standard The Nu Markup Checker.

See also: http://validator.github.io/validator/#options

errors-only

Type: Boolean

Default: false

format

Type: String

Default: "gnu"

html

Type: Boolean

Default: false

no-stream

Type: Boolean

Default: false

verbose

Type: Boolean

Default: false

License

Copyright 2015 Daijiro Wachi

This software is released under the MIT License. See LICENSE.