validator / gulp-html

Gulp plugin for HTML validation, using the official Nu Html Checker (v.Nu)

Home Page:https://validator.github.io/gulp-html/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gulp-html

npm version Build Status

gulp plugin for HTML validation, using the Nu Html Checker (v.Nu)

Install

Run npm install gulp-html -D.

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 Nu Html Checker.

See also https://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.

About

Gulp plugin for HTML validation, using the official Nu Html Checker (v.Nu)

https://validator.github.io/gulp-html/

License:MIT License


Languages

Language:JavaScript 93.6%Language:HTML 6.4%