Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 599 Bytes

File metadata and controls

24 lines (17 loc) · 599 Bytes

Check for broken links

$ npm install broken-link-checker -g

Run it against production site.

$ rm -f links.log; npx blc https://runme.dev -ro > links.log
# expected to fail if any non 2xx/3xx status code occur

All 404s.

$ grep "HTTP_404" links.log

Ignore externals.

$ cat links.log | grep -v "https://github.com" | grep -v "https://marketplace" | grep "HTTP_404"