A JavaScript library that allows you to get a list of urls and their error codes from the Google's webmasters crawl errors tool.
This tool is useful if you're trying to fix 404s errors on your website using Google Search Console Tools. Instead of individually fixing each url, you could automate your redirect system using this script. Navigate to the Google Search Console Tools -> Indexing -> Pages -> Choose "Soft 404" for example -> then run (copy/paste) the script.
npm install --save get-google-crawl-errors
var getGoogleCrawlErrors = require('get-google-crawl-errors')
/**
* A list of error urls.
* @type {String[]}
*/
var errorUrls = getGoogleCrawlErrors.get()
MIT. Copyright (C) James Bechet