Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including gulp-htmlhint-html-reporter with all npm packages installed. Try it out:

var gulpHtmlhintHtmlReporter = require("gulp-htmlhint-html-reporter")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

gulp-htmlhint-html-reporter v1.0.1

Simple generator of HTML report for gulp-htmlhint that writes its output to a html file which looks pretty

gulp-htmlhint-html-reporter

A simple reporter for gulp-htmlhint that writes it's output to an html file which looks pretty.

Installation

npm install gulp-htmlhint-html-reporter --save

Usage

var gulp = require('gulp');
var htmlhint = require('gulp-htmlhint');

gulp.task('lint', function() {
  return gulp.src('./lib/*.js')
    .pipe(htmlhint())
    .pipe(htmlhint.reporter('gulp-htmlhint-html-reporter', {
      filename: __dirname + '/htmlhint-output.html',
      createMissingFolders : false  
    }));
});

Options

Plugin options:

Type: filename Default: "htmlhint-output.html"

The filename to write output from htmlhint. When linting is successfull, the file is not created.

Type: createMissingFolders Default: false

Enables or disables creation of any folders given in the filename that do not exist. If disabled and the given path contains folders which do not exist, an ENOENT error is thrown.

License

MIT © AppFeel

Release History

  • 1.0.0 Initial release
RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free