LintHTML CLI
npm install @linthtml/linthtml



> The HTML5 linter and validator you need.
LintHTML is a fork of htmllint featuring a built-in CLI and multiple bug fixes and improvements.
The migration from htmllint to LintHTML is easy, as all htmllint's rules can be used with LintHTML – just follow this simple guide.
You can install LintHTML either locally or globally.
For most cases we recommend the former, which can be achieved this way with npm:
``shell`
npm install @linthtml/linthtml --save-dev
You should then init a configuration file:
`shell`
npx linthtml --init
This will generate a file .linthtmlrc in the current directory.
After that, you can run LintHTML on any file or directory like this:
`shell``
npx linthtml 'yourfile.html'
npx linthtml 'src/*/.html'
If you want to read about alternative installation and usage methods, have a look to the installation and usage page in the documentation.