🚀 DAY 5 OF LAUNCH WEEK:Introducing Webhook Events for Alert Changes.Learn more →
Socket
Book a DemoInstallSign in
Socket

check-my-links

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

check-my-links

A small CLI tool to make sure your website doesn't have any 404s or 500s

latest
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

A small CLI tool to make sure your website doesn't have any 404s or 500s:

$ check-my-links francisco.io
https://francisco.io 🔎
Status  Time    Found   Path
200     0.604s  +13     /
200     0.275s  +1      /resume
200     0.324s  +0      /blog/running-php-in-javascript
...

Output preview as described above

Features:

  • Visual hierarchy and colors; green = OK, red = problem, gray = meta information.
  • Follows UNIX conventions of separating elements with '\t'.
  • Use --help for further CLI instructions.
  • Use the flag --plain for even better and easier CLI usage. You can pipe that out easily.
  • Use the flag --links for more insight of where the broken links come from.
# Works great with other UNIX tools; e.g. print only the 404s
echo "francisco.io" | check-my-links --plain | grep 404

Getting started

Install the library with npm:

npm i check-my-links -g

Use it by giving it a url:

check-my-links francisco.io
check-my-links picnicss.com

For more help or to check the version:

check-my-links --help
check-my-links --version

--plain

Removes the header, the colors and the spaces around it. Ideal for further CLI processing:

Plain flag example

Adds the link information to help debug where the broken links comes from:

Links flag example

FAQs

Package last updated on 21 Sep 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts