Code Monkey home page Code Monkey logo

me-check-links's Introduction

me-check-links

A simple command-line tool to check the status of links

Installation

npm:
npm i @Jasper-mui/me-check-link -g


or

manually:

  1. Download files via the zip file or using git
  2. To install dependencies:
    npm install
  3. To create a symlink for the command:
    npm link

What is it for?

MCl command is used to quickly find bad links of HTTP status of 400 or 404. (Please do not rely on this tool as it is not robust enough to do so. Use it as an aid)

How to use

MCL - a command to check links of a HTML page
if no arguments are supplied, a help message will be displayed
Options:
-v or /v, to get the version number and name of the tool
-u or /u, to check the links of a HTML page of supplied URL
-j or /j, change output to json format, all links display in green no long follows color rules
-b or /b, this flag will only show bad links, no flag specified will show all links -g or /g, this flag will onyl show good links, no flag specified will show all links

Feature

  • The result of the links shows up in color to display the status of links. Does not apply to -j option as all links will show in green
  1. Green links are good links with an HTTP status of 200.
  2. Red links are bad links of HTTP status 400 or 404.
  3. Grey links are unknown with any other HTTP status.
  • The command can check HTML pages links via URL using -u option and supplying a valid HTTP URL.

  • The tool can check multiple URLs or HTML files to be checked at once if more than enter one URL or HTML file is entered one after another, separated by a space.
    But url and html cannot be mixed together in a single command.
    The -u option is still required when checking multiple URLs.

  • Handles Unix and windows style of args -u or /u

  • Handles links that cause timeouts smoothly

  • Output in JSON format

  • Flags to choice to only show good or bad links

me-check-links's People

Contributors

jasper-mui avatar joelazwar avatar matt-ross16 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.