💡 A hinting engine for the web
Switch branches/tags
utils-tests-helpers-v1.0.1 utils-tests-helpers-v1.0.0 utils-debugging-protocol-common-v1.0.13 utils-debugging-protocol-common-v1.0.12 utils-debugging-protocol-common-v1.0.11 utils-debugging-protocol-common-v1.0.10 utils-debugging-protocol-common-v1.0.9 utils-debugging-protocol-common-v1.0.8 utils-debugging-protocol-common-v1.0.7 utils-debugging-protocol-common-v1.0.6 utils-debugging-protocol-common-v1.0.5 utils-debugging-protocol-common-v1.0.4 utils-debugging-protocol-common-v1.0.3 utils-debugging-protocol-common-v1.0.2 utils-debugging-protocol-common-v1.0.1 utils-debugging-protocol-common-v1.0.0 utils-create-server-v1.0.3 utils-create-server-v1.0.2 utils-create-server-v1.0.1 utils-create-server-v1.0.0 utils-connector-tools-v1.0.8 utils-connector-tools-v1.0.7 utils-connector-tools-v1.0.6 utils-connector-tools-v1.0.5 utils-connector-tools-v1.0.4 utils-connector-tools-v1.0.3 utils-connector-tools-v1.0.2 utils-connector-tools-v1.0.1 utils-connector-tools-v1.0.0 parser-webpack-config-v1.0.0 parser-typescript-config-v1.1.0 parser-typescript-config-v1.0.1 parser-typescript-config-v1.0.0 parser-manifest-v1.1.0 parser-manifest-v1.0.1 parser-manifest-v1.0.0 parser-javascript-v3.2.0 parser-javascript-v1.0.1 parser-javascript-v1.0.0 parser-html-v1.0.4 parser-html-v1.0.3 parser-html-v1.0.2 parser-html-v1.0.1 parser-html-v1.0.0 parser-css-v1.0.1 parser-css-v1.0.0 parser-babel-config-v1.1.0 parser-babel-config-v1.0.1 parser-babel-config-v1.0.0 hint-x-content-type-options-v1.0.3 hint-x-content-type-options-v1.0.2 hint-x-content-type-options-v1.0.1 hint-x-content-type-options-v1.0.0 hint-webpack-config-v1.0.0 hint-validate-set-cookie-header-v1.0.2 hint-validate-set-cookie-header-v1.0.1 hint-validate-set-cookie-header-v1.0.0 hint-v3.4.11 hint-v3.4.10 hint-v3.4.9 hint-v3.4.8 hint-v3.4.7 hint-v3.4.6 hint-v3.4.5 hint-v3.4.4 hint-v3.4.3 hint-v3.4.2 hint-v3.4.1 hint-v3.4.0 hint-v3.3.2 hint-v3.3.1 hint-v3.3.0 hint-v3.2.5 hint-v3.2.4 hint-v3.2.3 hint-v3.2.2 hint-v3.2.1 hint-v3.2.0 hint-v3.1.1 hint-v3.1.0 hint-v3.0.1 hint-v3.0.0 hint-typescript-config-v1.1.1 hint-typescript-config-v1.1.0 hint-typescript-config-v1.0.2 hint-typescript-config-v1.0.1 hint-typescript-config-v1.0.0 hint-stylesheet-limits-v1.0.1 hint-stylesheet-limits-v1.0.0 hint-strict-transport-security-v1.0.6 hint-strict-transport-security-v1.0.5 hint-strict-transport-security-v1.0.4 hint-strict-transport-security-v1.0.3 hint-strict-transport-security-v1.0.2 hint-strict-transport-security-v1.0.1 hint-strict-transport-security-v1.0.0 hint-ssllabs-v1.0.2 hint-ssllabs-v1.0.1 hint-ssllabs-v1.0.0 hint-sri-v1.0.2
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.

README.md

webhint

Travis CI build status AppVeyor build status Greenkeeper status Gitter

Quick start user guide

Once you have Node.js v8.x on your machine, you can use npx or install hint globally to use it.

Using npx

Run the following command:

npx hint https://example.com

This will analyze https://example.com using the default configuration.

Installing webhint globally

npm install -g --engine-strict hint

Create a .hintrc file by running this command and following the instructions:

npm create hintrc

Scan a website:

hint https://example.com

To use a different formatter than the one specified in your .hintrc file you can do the following:

hint https://example.com --formatters excel

To use a different hint than the one specified in your .hintrc file:

hint https://example.com --hints html-checker

Multiple hints can be specified as a comma sepreated string:

hint https://example.com --hints axe,html-checker

For more in depth information on how to get started, configurations, and more, see the online user guide, or the local version for the most recent (and unstable) content.

Contributing to webhint

To know more about the internals of webhint, the structure of the project, how to create new hints, collectors, formatters, etc, take a look at the online contributor guide (or the local version).

Code of Conduct

This project adheres to the JS Foundation’s code of conduct. By participating in this project you agree to abide by its terms.

License

The code is available under the Apache 2.0 license.