Nonlinear Performance Magnification
Get unlimited public & private packages + package-based permissions with npm Pro.Get started »

jshint-html-reporter

0.2.5 • Public • Published

jshint-html-reporter

Simple generator of HTML report for JSHint results.

Installation

$: npm install jshint-html-reporter --save

Usage

Use it with:

JSHint CLI

# standard output 
$: jshint --reporter node_modules/jshint-html-reporter/reporter.js file.js
$: jshint --reporter node_modules/jshint-html-reporter/reporter.js controllers/*.js
 
# redirect output to HTML file 
$: jshint --reporter node_modules/jshint-html-reporter/reporter.js file.js > report.html
$: jshint --reporter node_modules/jshint-html-reporter/reporter.js controllers/*.js > report.html

grunt-contrib-jshint

grunt.initConfig({
    jshint: {
        options: {
            reporter: require('jshint-html-reporter'),
            reporterOutput: 'jshint-report.html'
        },
        target: ['file.js']
    }
});
 
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.registerTask('default', ['jshint']);

URLs

Author

Adrian Pietka

License

CC BY 4.0 © Adrian Pietka

Release History

  • 0.2.5 Fixed page overflow when there are long lines of code
  • 0.2.4 Using HTTPS protocol for Bootstrap CDN url
  • 0.2.3 Changed license to CC 4.0
  • 0.2.2 HTTP protocol removed from Bootstrap CDN url
  • 0.2.1 Properly escape content for HTML output
  • 0.2.0 Summary of results and code refactor
  • 0.1.3 Improvements in package.json
  • 0.1.2 Improvements in package.json and template
  • 0.1.1 Fixes for path of template files
  • 0.1.0 Initial release

Install

npm i jshint-html-reporter

DownloadsWeekly Downloads

1,031

Version

0.2.5

License

CC BY 4.0

Last publish

Collaborators

  • avatar