advanced-seo-checker
v3.2.0
Published
A library for checking basic SEO signals of a website
Downloads
34
Readme
Advanced SEO Checker
A library for checking basic SEO signals on a web page
Usage
Install with npm npm install advanced-seo-checker --save
Getting started
Require the library and then all the methods listed below will be made available to you.
The analyze
method takes the URLs' list as a parameter to start analyzing them
const SEOChecker = require('advanced-seo-checker');
let baseURL = 'http://hazemhagrass.com';
let urls = [baseURL, 'http://hazemhagrass.com/blog'];
let crawler = SEOChecker(baseURL, {});
crawler.analyze(urls).then(function (summary) {
let util = require('util');
console.log(util.inspect(summary));
});
Most of the items in the returned object are self explanatory. Here are the ones that may not be obvious:
heading1
: This is the text of the first H1 heading tag on the pagetotalHeadings
: Counts how many H1 tags on a pageimgAccessibility
- This is the percentage of images on a page that have noalt
ortitle
attributes.
Development
- Clone the repository
git clone https://github.com/hazemhagrass/advanced-seo-checker && cd advanced-seo-checker
- Install dependencies
npm install
Now you can develop!
Contributing
Contributions are very welcome! This is a project we created to fulfill a pretty specific use case. Although we tried to make it as generic as possible we think we can improve. So if you want to expand on our work and make this library appeal to a broader range of use cases or platforms then please share your pull requests and we'll accept them.