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

html-validator

Package Overview
Dependencies
Maintainers
1
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

html-validator

Validates html using validator.nu

  • 0.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
19K
increased by2.71%
Maintainers
1
Weekly downloads
 
Created
Source

#html-validator#

A Node.js module for validating html against validator.nu

At the moment only the URL as a GET parameter is implemented from the Validator.nu Web Service Interface

##Installation##

$ npm install html-validator

##Usage##

Create an options object.

url is required and is the url to the page you want to validate.

format defaults to json but also supports html, xhtml, xml, gnu and text. This is the formatting of the returned data.

var validator = require('html-validator'),
  , opts = {
      url : 'http://url-to-validate.com',
      format : 'json'
  };

validator(opts, function(err, data){
  if(err) throw err;
  
  console.log(data);
})

FAQs

Package last updated on 25 Mar 2014

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc