md-links-minifemto

1.0.1 • Public • Published

md-links

md-links is a library that loops through MD files to check the links they contain.

Getting Started

npm i md-links-minifemto --global

Usage:

You will be able to enter the following options:

--validate option

md-links path --validate

It will return as follows:

  • href: URL found.
  • text: Text that appeared inside the link ().
  • file: Path of the file where the link was found.
  • status: HTTP response code.
  • ok: 'fail' in case of failure or 'ok' in case of success.

--stats

md-links path --stats

Output:

  • Total: total links
  • Unique: unique links

--validate --stats

md-links path --validate --stats or md-links path --stats --validate Output:

  • Total: total links
  • Unique: unique links
  • Broken: broken links

No options selected

It will return

  • href: URL found.
  • text: Text that appeared inside the link ().
  • file: Path of the file where the link was found.

Always enter the path (otherwise it will show an error)

Readme

Keywords

none

Package Sidebar

Install

npm i md-links-minifemto

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

111 kB

Total Files

15

Last publish

Collaborators

  • minifemtovalen