https://github.com/validator/gulp-html
Gulp plugin for HTML validation, using the official Nu Html Checker (v.Nu)
https://github.com/validator/gulp-html
gulp-plugin gulp-plugins gulpplugin html html-validation jar official validator vnu w3c w3c-validator
Last synced: about 2 months ago
JSON representation
Gulp plugin for HTML validation, using the official Nu Html Checker (v.Nu)
- Host: GitHub
- URL: https://github.com/validator/gulp-html
- Owner: validator
- License: mit
- Created: 2015-01-09T16:48:44.000Z (over 10 years ago)
- Default Branch: main
- Last Pushed: 2024-10-22T04:44:23.000Z (7 months ago)
- Last Synced: 2025-03-28T07:06:22.578Z (about 2 months ago)
- Topics: gulp-plugin, gulp-plugins, gulpplugin, html, html-validation, jar, official, validator, vnu, w3c, w3c-validator
- Language: JavaScript
- Homepage: https://validator.github.io/gulp-html/
- Size: 42.3 MB
- Stars: 75
- Watchers: 7
- Forks: 18
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gulp-html
[](https://www.npmjs.com/package/gulp-html)
[](https://github.com/validator/gulp-html/actions/workflows/test.yml?query=branch%3Amain)gulp plugin for HTML validation, using the [Nu Html Checker (v.Nu)](https://validator.github.io/validator/)
## Install
Run `npm install gulp-html -D`.
## Usage
```js
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 .
### 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](https://github.com/validator/gulp-html/blob/main/LICENSE).