1.0.0 • Published 3 years ago

@jenyfermarqez/mq-links v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Mq-Links 🔗


1. About The Project ✒️

This module extracts all the links that are in a Markdown file, it has the following options:

--validate: Check if there are valid or broken links --stats: Shows a statistic of the total number of links and how many of them are unique. --validate --stats: Adds to the statistics the total amount of broken links.

2. Getting Started 🚀

Installation 🔧

Install NPM packages

 npm  install @marqez/mq-links

Usage

Case 1:

We will use the md-links command to get the links of the path.

mq-links <path-to-file>

api-js-LIM016-md-links-Visual-Studio-Code-28-02-2022-15-55-39-2.png

Case 2:

mq-links <path-to-file> --validate 
                 o 
mq-links <path-to-file> --v 

api-js-LIM016-md-links-Visual-Studio-Code-28-02-2022-16-23-42-2.png

Case 3:

  mq-links <path-to-file> --stats
                  o 
  mq-links <path-to-file> --s 

api-js-LIM016-md-links-Visual-Studio-Code-28-02-2022-16-33-04-2.png

Case 4:

mq-links <path-to-file> --stats --validate            
                   or 
mq-links <path-to-file> --validate --stats

cli-js-LIM016-md-links-Visual-Studio-Code-3-03-2022-02-36-32-2.png

Case 5:

md-links --help

README-md-LIM016-md-links-Visual-Studio-Code-3-03-2022-02-39-55-2.png

2. Flowchart

flujo.png

flujo-drawio-png-LIM016-md-links-Visual-Studio-Code-28-02-2022-12-48-55-2.png

3. Built with 🛠️

  • Javascript.
  • Node.js.
  • Npm.
  • Jest.
  • ESlint.

Dependencies:

  • node-fetch.
  • marked.
  • jsdom.
  • figlet.
  • chalk.