0.1.1 • Published 8 years ago
@chihhunglin/seochecker v0.1.1
SEO checker
A small library that check html tags
Installation
npm install @chihhunglin/seochecker
Usage
const t = require('@chihhunglin/seochecker')
// t(rules, file, storngMax)
t([1], 'index.html')
t([1,2,3,4,5], 'index.html', 1)Params
- rules (default: [])
- file (default: 'index.html')
- strongMax (default: 15)
Rules
- Detect if any
<img />tag without alt attribute - Detect if any
<a />tag without rel attribute - In
<head>tag i. Detect if header doesn’t have<title>tag ii. Detect if header doesn’t have<meta name=“descriptions” ... />tag iii. 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