htmllint
Version:
An unofficial html5 linter.
42 lines (29 loc) • 2.27 kB
Markdown
# htmllint [](https://npmjs.org/package/htmllint) [](https://npmjs.org/package/htmllint) [](https://travis-ci.org/htmllint/htmllint) [](https://coveralls.io/r/htmllint/htmllint)
[](http://waffle.io/htmllint/htmllint)
[](https://david-dm.org/htmllint/htmllint)
[](https://david-dm.org/htmllint/htmllint)
> An unofficial html5 linter and validator.
htmllint uses a parser to get the DOM for your html. It then uses the provided rules (and default rules) to lint both the DOM and then individual lines. [Take a look at the supported options](https://github.com/htmllint/htmllint/wiki/Options).
Using htmllint
--------------
If you'd like to run htmllint, we have a few options.
This module doesn't provide any interface on its own. It is highly recommended that
you use one of the following modules to run the linter:
* [`gulp-htmllint`](https://github.com/yvanavermaet/gulp-htmllint): a gulp interface for htmllint
* [`grunt-htmllint`](https://github.com/htmllint/grunt-htmllint): a grunt plugin for htmllint
* [`htmllint-cli`](https://github.com/htmllint/htmllint-cli): a cli interface for htmllint (NOTE: not complete at the moment)
Getting Started with Contributing
---------------
You can use htmllint in Node.JS by using
```
require('htmllint')
```
in your code, and doing an install with
```
npm install htmllint
```
(Remember `--save-dev` if this is just for your development).
### Now What?
To learn more about the options and usage of htmllint, check out the
[user manual](https://github.com/htmllint/htmllint/wiki/htmllint-manual).
[](https://npmjs.org/package/htmllint)