md-links-sa v1.0.3
β¨ Markdown Links
π Γ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.
π --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.
π --stats
Provides statistics of the total number of links(Total) and links that are not repeated(Unique).
md-links ./examples/folder/directory1 --stats
π --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
4. Author
Shiley B. Aguilar Aguilar (https://github.com/Shirley-Aguilar-Aguilar/LIM017-md-links)