New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

markuplint

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

markuplint

HTML linter for legacy/modern HTML, Web Components, SVG, MathML, AMP HTML and more.

  • 0.6.0
  • npm
  • Socket score

Version published
Weekly downloads
26K
decreased by-0.04%
Maintainers
1
Weekly downloads
 
Created

markuplint

npm version Build Status Coverage Status

HTML linter for legacy/modern HTML, Web Components, SVG, MathML, AMP HTML and more.

Install

$ yarn add markuplint

Usage

CLI

$ markuplint verifyee.html
$ markuplint --help
    Usage
      $ markuplint <input>

    Options
      --ruleset, -r    Ruleset file path

    Examples
      $ markuplint verifyee.html --ruleset path/to/.markuplintrc
      $ cat verifyee.html | markuplint

API

import * as markuplint from 'markuplint';

const reports = await markuplint.verify(html, ruleset, rules);
// or
const { html, reports } = await markuplint.verifyFile(htmlPath, ruleset, rules);

Rules

Rule Documentation

Thanks

This linter is inspired by

FAQs

Package last updated on 12 Dec 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts