Socket
Book a DemoInstallSign in
Socket

w3c-html-validator

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

w3c-html-validator

A package for testing HTML files or URLs against the W3C validator (written in TypeScript)

Source
npmnpm
Version
0.5.1
Version published
Weekly downloads
1.4K
-2.49%
Maintainers
1
Weekly downloads
 
Created
Source

W3C HTML Validator

<img src=https://centerkey.com/graphics/center-key-logo.svg align=right width=200 alt=logo>

A package for testing HTML files or URLs against the W3C validator

License:MIT npm Vulnerabilities Build

Setup

Install

Install package for node:

$ npm install --save-dev w3c-html-validator

Import

Import into your application:

import { w3cHtmlValidator } from 'w3c-html-validator';

Validate

Call the validate() function:

const handleValidation = (error, info) => console.log(error || info);
const options = { file: 'https://pretty-print-json.js.org/', callback: handleValidation };
w3cHtmlValidator.validate(options);

Keywords

html

FAQs

Package last updated on 11 Jun 2021

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