JSPM

routecheck

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q30461F
  • License ISC

A simple CLI tool to check the status of links (HTTP status codes) for files and individual URLs.

Package Exports

  • routecheck
  • routecheck/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (routecheck) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

๐Ÿ› ๏ธ RouteCheck CLI - Because Links Deserve to Be Valid! NPM version NPM downloads

Are your links alive, or are they already dead?

With RouteCheck CLI, youโ€™ll never have to worry about broken links (404s) or orphaned pages again! This command-line tool is your trusty sidekick to make sure your websiteโ€™s links are always in tip-top shape.

๐Ÿš€ Features

  • Check URLs: Check a single URL or batch-check multiple links from a file.
  • Format Flexibility: Output the results in text, CSV, or JSON.
  • Parallel Processing: Speed up the process with the --parallel flag and check multiple links simultaneously.
  • Detailed Results: Get an HTTP status code and the health of each link. Dead links? Weโ€™ll let you know!

๐Ÿ“ฆ Installation

Install via npm:

You can install RouteCheck CLI globally using npm:

npm install -g routecheck

โšก Usage

Check a single URL:

npx routecheck http://example.com

Youโ€™ll get a simple text-based output telling you if the link is alive or not, including the HTTP status code.

Check multiple links from a file:

Save a list of links in a .txt file (e.g., links.txt), one URL per line. Then run:

npx routecheck checkfile links.txt

It will process all the URLs in the file and let you know the status of each one.

Add parallel requests (for speed!):

Want to speed up the process when checking many links? Use the --parallel flag:

npx routecheck checkfile links.txt --parallel

This will check all the URLs at once, instead of one by one, making your checking experience lightning-fast!

Output in different formats:

If youโ€™re fancy and need the results in CSV or JSON, hereโ€™s how you do it:

  • Text (default):
    npx routecheck checkfile links.txt
  • CSV:
    npx routecheck checkfile links.txt csv
  • JSON:
    npx routecheck checkfile links.txt json

๐ŸŽฏ Why Use RouteCheck CLI?

  • SEO-friendly: Broken links can hurt your SEO rankings. This tool ensures that your links are always healthy.
  • Time-saver: Instead of clicking every link on your website manually, this CLI automates the entire process.
  • Batch Processing: Whether itโ€™s one URL or a thousand, this tool handles it allโ€”quickly and efficiently.
  • Works Locally: Use it from your terminal. No need for extra software or complex installations.

๐Ÿค” FAQ

Q: What does this tool do?

A: It checks URLs for status codes (like 404s) and helps you make sure your links are alive!

Q: Can I use it for my website?

A: Absolutely! In fact, we highly recommend it.

Q: Does this tool check for everything?

A: It checks links for HTTP status codes. We don't deal with deep-dives into content or redirects... yet. ๐Ÿ˜‰

๐Ÿ‘ Shoutout

Link-checking made simple and easy. Because no one likes broken links... except maybe broken-hearted websites. ๐Ÿ˜…

๐Ÿ‘จโ€๐Ÿ’ป Author

cinfinit

Builder of tools, breaker of links (intentionally), and occasional debugger of existential crises. Passionate about clean code, developer tooling, and making the web a better place (one unbroken link at a time).

When not coding, probably debugging life .