Nerdy People Matriculate
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

html-validate

0.12.0 • Public • Published

html-validate

pipeline status coverage report

Offline HTML5 validator. Validates either a full document or a smaller (incomplete) template, e.g. from an AngularJS or React component.

Features

  • Can test fragments of HTML, for instance a component template.
  • Does not upload any data to a remote server, all testing is done locally.
  • Strict and non-forgiving parsing. It will not try to correct any incorrect markup or guess what it should do.

Usage

npm install -g html-validate
html-validate FILENAME..

Configuration

Create .htmlvalidate.json:

{
  "extends": [
    "htmlvalidate:recommended"
  ],
 
  "rules": {
    "close-order": "error"
    "void": ["warn", {"style": "omit"}]
  }
}

Test

npm test

Lint

npm run lint

Build

grunt build grunt docs

install

npm i html-validate

Downloadsweekly downloads

133

version

0.12.0

license

MIT

repository

Gitgit

last publish

collaborators

  • avatar
Report a vulnerability