find-empty-href

A script that will traverse HTML and XHTML files and return an error if an empty href attribute is found


License
Unlicense
Install
npm install find-empty-href@0.0.1

Documentation

find-empty-href

A node script to traverse a folder (and it's subfolders) for (x)html files and return a list of files that have an <a> tag with an empty href attribute.

Installation

$ npm i -g find-empty-href

Usage

$ cd my/folder/with/html/files
$ find-empty-href

Example Output

$ find-empty-href
**** Searching 1 file for Empty href Values in <a> Tags ****
Reading sample.xhtml...
**** Search Complete.  Found 1 bad file ****
Empty HREFs found in sample.xhtml