# htmllint

> An unofficial html5 linter.

Latest version **0.8.0** (published 2019-04-22) · ISC license · 0 weekly downloads

## Install

```sh
npm install htmllint
pnpm add htmllint
yarn add htmllint
bun add htmllint
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.8.0 |
| Published | 2019-04-22 |
| First published | 2014-08-28 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=6 |
| Dependencies | 4 |
| Unpacked size | 108.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 380 |
| Maintainers | coalman, mlochbaum |
| Keywords | html, lint, hint, htmllint |

## Links

- npm: https://www.npmjs.com/package/htmllint
- Repository: https://github.com/htmllint/htmllint
- Homepage: https://github.com/htmllint/htmllint#readme
- Issues: https://github.com/htmllint/htmllint/issues
- npm.io page: https://npm.io/package/htmllint

## Dependencies (4)

- [lodash](https://npm.io/package/lodash.md) ^4.17.11
- [promise](https://npm.io/package/promise.md) ^8.0.3
- [htmlparser2](https://npm.io/package/htmlparser2.md) ^3.10.1
- [bulk-require](https://npm.io/package/bulk-require.md) ^1.0.1

## Alternatives

- [eslint-plugin-sonarjs](https://npm.io/package/eslint-plugin-sonarjs.md) — 2.9M weekly downloads
- [eslint-config-expo](https://npm.io/package/eslint-config-expo.md) — 1.5M weekly downloads
- [@matter/protocol](https://npm.io/package/@matter/protocol.md) — 63.5K weekly downloads
- [@eventcatalog/linter](https://npm.io/package/@eventcatalog/linter.md) — 24.8K weekly downloads
- [@inrupt/eslint-config-base](https://npm.io/package/@inrupt/eslint-config-base.md) — 4.5K weekly downloads

## Recent versions

- 0.8.0 (latest) — 2019-04-22
- 0.7.3 — 2018-12-15
- 0.7.2 — 2018-02-13
- 0.7.1 — 2018-02-13
- 0.7.0 — 2017-10-29
- 0.6.0 — 2017-01-20
- 0.5.0 — 2016-12-30
- 0.4.0 — 2016-07-18
- 0.3.0 — 2016-03-25
- 0.2.7 — 2015-10-17
- 0.2.6 — 2015-08-31
- 0.2.5 — 2015-07-12
- 0.2.4 — 2015-04-13
- 0.2.3 — 2015-02-06
- 0.2.2 — 2014-12-06
- … 15 more at https://npm.io/package/htmllint/versions

## README

# htmllint [![npm version](http://img.shields.io/npm/v/htmllint.svg?style=flat-square)](https://npmjs.org/package/htmllint) [![license](http://img.shields.io/npm/l/htmllint.svg?style=flat-square)](https://npmjs.org/package/htmllint) [![build status](http://img.shields.io/travis/htmllint/htmllint/master.svg?style=flat-square)](https://travis-ci.org/htmllint/htmllint) [![coveralls](http://img.shields.io/coveralls/htmllint/htmllint.svg?style=flat-square)](https://coveralls.io/r/htmllint/htmllint)

[![stories in ready](https://badge.waffle.io/htmllint/htmllint.svg?label=ready&title=Ready)](http://waffle.io/htmllint/htmllint)
[![dependencies](http://img.shields.io/david/htmllint/htmllint.svg?style=flat-square)](https://david-dm.org/htmllint/htmllint)
[![devDependencies](http://img.shields.io/david/dev/htmllint/htmllint.svg?style=flat-square)](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).
  


[![npm](https://nodei.co/npm/htmllint.png?downloads=true&downloadRank=true&stars=true)](https://npmjs.org/package/htmllint)

---
_Source: https://npm.io/package/htmllint · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
