Link Check Open Source: url-fi

Introduction

Url-fi is a command-line tool written in NodeJS for finding and reporting dead links in a file. Users might use this tool to help locate broken URLs in any type of file (e.g., HTML, text file). This is the GitHub repository you can get my codes: https://github.com/hyunjiLeeTech/URL-FI




How to set up the tool

  1. Copy and paste the link into a terminal or visual studio code with the following command: git clone https://github.com/hyunjiLeeTech/URL-FI.git
  2. To start the tool, use the cd command to make sure you are in the correct folder and then install all the dependencies using the npm command: npm i
  3. Enter the command to start the tool. You need to mention the file name.


Usage

url-fi [argument(s)] [filename]


Arguments

  • -v: Running the tool with v argument prints the name of the tool and its version
  • -s: Running the tool with the s argument checks both http:// https://
  • -h: Running the tool with the h argument prints the usage of this tool


Features

  • Colorized output. Good URLs should be printed in green, bad URLs in red, and unknown URLs in gray & running the tool with the v argument should print the name of the tool and its version
  • Add a command-line flag to allow checking whether http:// URLs actually work using https://
  • Optimize network code so that this tool only request headers vs. downloading full bodies


Examples of how to use this tool

-v



-s 



-h



License

Distributed under the MIT License

Comments

Popular posts from this blog

Lab 8: Automated Testing and Continuous Integration

Open Source Project: Lab2 (Pull Request)

Release 0.3: External Project (Hasura GraphQL Engine)