unclosedhtmltags

1.1.1 • Public • Published

UnclosedHtmlTags

node module to analyze every html in a given directory and reports a list of files with unclosed html tags.

Installation:

$ npm install unclosedhtmltags

Usage:

var unclosedhtmltags = require("unclosedhtmltags");
unclosedhtmltags.analyze('.'); //Analyze html in current directory (Recursively analizes children directories too)
 
// You can also analyze a single file by using the findUnclosed method passing 
// the html file content as string
var fs = require('fs');
 
var fileContent = fs.readFileSync('./myFile.html').toString();
var result = unclosedhtmltags.findUnclosed(fileContent);
if(result.passed){
    console.log('OK');
}else{
    result.errors.forEach(function(e){console.log('ERROR:', e.message)});
}

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.1
    49
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.1.1
    49
  • 1.1.0
    0
  • 1.0.2
    0
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i unclosedhtmltags

Weekly Downloads

49

Version

1.1.1

License

MIT

Last publish

Collaborators

  • marcosbasualdo