Linter that was originally part of kangax/html-minifier
JavaScript HTML CSS
Switch branches/tags
Clone or download
alexlamsl Merge pull request #7 from kangax/qunit-2
update dependencies and tests
Latest commit f9ac807 Sep 10, 2016


NPM version Build Status Dependency Status devDependency Status Gitter

HTMLLint is a JavaScript-based HTML Linter based on HTMLMinifier.

Test suite is available online.

Installation Instructions

From NPM for programmatic use:

npm install html-minifier-lint

From Git:

git clone git://
cd html-lint
npm link .


For command line usage please see html-minifier-lint --help


var lint = require('html-minifier-lint').lint;
var result = lint('<p title="blah" id="moo">foo</p>');
result; // ' - No DOCTYPE found.'