Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including advanced-seo-checker with all npm packages installed. Try it out:

var advancedSeoChecker = require("advanced-seo-checker")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

advanced-seo-checker v3.1.3

A library for checking basic SEO signals of a website

Advanced SEO Checker Build Status

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 page
  • totalHeadings: Counts how many H1 tags on a page
  • imgAccessibility - This is the percentage of images on a page that have no alt or title attributes.

Development

  1. Clone the repository git clone https://github.com/hazemhagrass/advanced-seo-checker && cd advanced-seo-checker
  2. 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.

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free