gulp plugin for HTML validation, using vnu.jar
Switch branches/tags
Nothing to show
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
test Add base files Jan 10, 2015
.gitignore Initial commit Jan 9, 2015
.travis.yml Make travis green again Apr 28, 2017
LICENSE Initial commit Jan 9, 2015
README.md remove unused badge and update links (#24) Dec 18, 2018
gulpfile.js Update test case Jun 12, 2015
index.js New error displaying, when using json format (#15) Apr 17, 2018
package.json remove unused badge and update links (#24) Dec 18, 2018

README.md

gulp-html Build 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.