This is a basic seo analyser based on the rules below:
-
Detect if any
<img />
tag without alt attribute -
Detect if any
<a />
tag without rel attribute -
In
<head>
tagi. Detect if header doesn’t have
<title>
tagii. Detect if header doesn’t have
<meta name=“descriptions” ... />
tagiii. Detect if header doesn’t have
<meta name=“keywords” ... />
tag -
Detect if there’re more than 15
<strong>
tag in HTML (15 is a value should be configurable by user) -
Detect if a HTML have more than one H1 tag.
npm i seoreadder
var seoreadder=require('seoreadder') var strongTagNumber=15 seoreadder('path/to/index.html',strongTagNumber)
Fork and enjoy coding :)