gulp plugin for HTML validation, using vnu.jar
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 Update deps (#25) Dec 19, 2018
LICENSE Initial commit Jan 9, 2015
README.md update example for gulp v4 (#26) Dec 19, 2018
gulpfile.js Update deps (#25) Dec 19, 2018
index.js Update deps (#25) Dec 19, 2018
package-lock.json Update deps (#25) Dec 19, 2018
package.json Update deps (#25) Dec 19, 2018

README.md

gulp-html Build Status

gulp plugin for HTML validation, using the vnu.jar

Install

Run npm install gulp-html.

Usage

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

const html = () => {
  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.