find-empty-href
v0.0.3
Published
A script that will traverse HTML and XHTML files and return an error if an empty href attribute is found
Downloads
6
Readme
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