md-links-susan

0.1.0 • Public • Published

Markdown Links

Md-links is a library that allows you to validate and get the statistics of the links found in your Markdown (.md) files.

Installation

To install the library you must type the following command in the terminal:

npm i md-links-susan

Once installed you can start using it.

Usage

'Command'
md-links <path-to-file> --validate --stats

# md-links <path-to-file>

'Return'
href: URL found.
text: Text inside the link (<a>).
file: Path of the file where the link was found.

# md-links <path-to-file> --validate

'Return'
href: URL found.
text: Text inside the link (<a>).
file: Path of the file where the link was found.
status: HTTP response code.
status message: "FAIL" in case of failure / "OK" in case of success.

# md-links <path-to-file> --stats

'Return'
Total: total links found
Unique: unique links found

# md-links <path-to-file> --validate --stats

'Return'
Total: total links found
Unique: unique links found
Broken: broken links found

Readme

Keywords

Package Sidebar

Install

npm i md-links-susan

Weekly Downloads

1

Version

0.1.0

License

ISC

Unpacked Size

12.5 kB

Total Files

12

Last publish

Collaborators

  • susanlotus