New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

html-tags-validator

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

html-tags-validator

This checks whether the html file has its tags closed properly

latest
npmnpm
Version
1.1.1
Version published
Maintainers
1
Created
Source

This library gets the absolute path as its input parameter and returns whether the HTML file has any tags which is not properly closed

Installation

npm i html-tags-validator

Usage

  • Get the absolute path of the html file that needs to be validated
let filePath = path.join(__dirname,'./index.html')

Example

const checkHtml = require('html-tags-validator')
const path = require('path')
let filePath = path.join(__dirname,'./index.html')
checkHtml(filePath)
  • This library also mentions whether the html file has improper opening tags or closing tags

TODO

  • Support for all HTML Tags

Keywords

html

FAQs

Package last updated on 17 Nov 2019

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