1.0.3 β€’ Published 2 years ago

md-links-sa v1.0.3

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

✨ Markdown Links

coverage version

image

πŸ“‹ Índice


1. Description

Command line tool (CLI),that searches and reads markdown files with the purpose of granting the properties and statistics of the links.

2. Installation

Install as a development dependency in your project:

  npm install md-links-sa / npm i md-links-sa
   

3. Usage

πŸ”§ Main command.

Execute from the application the command with the following format:

  md-links <path-to-file> options
   

a)path-to-file: Absolute or relative path to the file or directory.
b)options: Command that provides the orders to obtain the statistics and information of the links. (--stats, --validate, --stats --validate)

πŸ”§ Examples

πŸ“Œ whitout option

Provides absolute path of the files markdown (*File), found link (Href) and its text (Text).

  md-links ./examples/folder/directory1/other-folder
     

file: Show absolute path of markdown file
Href: Found link.
Text: The text is displayed with a maximum of 50 characters.

image

πŸ“Œ --validate

Provides absolute path of the files markdown (*File), found link (Href), its text (Text) and status code.

 md-links ./examples/folder/directory1/other-folder --validate
     

file: Show absolute path of markdown file
Href: Found link.
Text: The text is displayed with a maximum of 50 characters.
status: Represents "ok" if the link works or "fail" if the link does not work. statuscode : Represents a link state number. Also, if there is an error with the hostname or if the protocol is not http or https, a message will be displayed instead of the number.

image

πŸ“Œ --stats

Provides statistics of the total number of links(Total) and links that are not repeated(Unique).

md-links ./examples/folder/directory1 --stats

image

πŸ“Œ --stats --validate/ --validate --stats

Provides statistics of total links(Total), links that are not repeated (Unique) and broken links (Broken).

md-links ./examples/folder/directory1 --validate --stats
       
md-links ./examples/folder/directory1 --stats --validate

image

4. Author

Shiley B. Aguilar Aguilar (https://github.com/Shirley-Aguilar-Aguilar/LIM017-md-links)

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago