0.1.0 • Published 9 years ago

jshint-reporter-badge v0.1.0

Weekly downloads
4
License
MIT
Repository
github
Last release
9 years ago

jshint-reporter-badge

Build status

A simple jshint reporter that produces a badge inspired by shields.io

For example the following badge is self served by this project, not by any service provider. Click it to access a JSHint report in HTML.

JSHint status

Install

npm install jshint-reporter-badge

usage

jshint --reporter node_modules/jshint-reporter-badge/index.js file.js > badge.svg

You can configure it using environment variables, for example:

export JSHINT_BADGE_SUBJECT=lint
export JSHINT_BADGE_OK_COLOR=green
export JSHINT_BADGE_KO_COLOR=orange
export JSHINT_BADGE_STYLE=flat