Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: implement url-crawl utility #58

Merged
merged 7 commits into from
Mar 14, 2023
Merged

feat: implement url-crawl utility #58

merged 7 commits into from
Mar 14, 2023

Conversation

Blazzike
Copy link
Collaborator

@Blazzike Blazzike commented Mar 7, 2023

Part of #46

Implements a UrlCrawl class (utils/url-crawl.js) with the following usage:

new UrlCrawl(/* options */).go().then((result) => result.summaryToConsole());

The above code would stdout something along the lines of the following when executed:

404 Not Found a[href="/404-path"] @ /source-page/
=== Summary ===
Scanned 24 URLs in 0.1s

Error Summary
  404 Not Found: 1

Totals
  Errors: 1
  Pass: 23

@Blazzike Blazzike requested a review from matthiasrohmer March 7, 2023 13:22
@Blazzike Blazzike self-assigned this Mar 7, 2023
package.json Outdated Show resolved Hide resolved
utils/url-crawl.js Outdated Show resolved Hide resolved
utils/url-crawl.js Outdated Show resolved Hide resolved
utils/url-crawl.js Outdated Show resolved Hide resolved
utils/url-crawl.js Outdated Show resolved Hide resolved
utils/url-crawl.js Outdated Show resolved Hide resolved
utils/url-crawl.js Outdated Show resolved Hide resolved
utils/url-crawl.js Outdated Show resolved Hide resolved
utils/url-crawl.js Outdated Show resolved Hide resolved
@matthiasrohmer matthiasrohmer merged commit 2751bf9 into GoogleChrome:main Mar 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants