Socket
Socket
Sign inDemoInstall

md-links-danipreciado

Package Overview
Dependencies
17
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    md-links-danipreciado

This is an npm package for extracting and analyzing links from Markdown files. It provides a command-line interface (CLI) tool that allows you to retrieve all the links contained in a given directory or file, and provides options for validating the status


Version published
Maintainers
1
Created

Readme

Source

This is an npm package for extracting and analyzing links from Markdown files. It provides a command-line interface (CLI) tool that allows you to retrieve all the links contained in a given directory or file, and provides options for validating the status of each link and generating statistics about the links.

Installation

To install the package, use the following command:

npm install md-links-danipreciado 
npm install danipreciado/md-links

To install the command line globally, run:

npm install -g md-links-danipreciado

Usage

To use the md-links-cli tool, run the following command in your terminal:

md-links <path> [--validate] [--stats]

Replace <path> with the path to the directory or file containing the Markdown files you want to analyze.

Options

The following options are available:

  • --validate: Validates the status of each link.
  • --stats: Displays basic statistics of the links.

You can use either one or both options together.

Example

To extract and display all the links in a directory without any validation or statistics:

md-links /path/to/directory

To extract and validate the status of each link in a directory:

md-links /path/to/directory --validate

To extract and display basic statistics of the links in a directory:

md-links /path/to/directory --stats

To extract, validate, and display complex statistics of the links in a directory:

md-links /path/to/directory --validate --stats

Output

The md-links-cli tool outputs the links found in the specified directory or file. If the --validate option is used, it also includes the status and message for each link. If the --stats option is used, it displays basic or complex statistics of the links.

FAQs

Last updated on 19 Jun 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc