Socket
Socket
Sign inDemoInstall

md-links-de-vale

Package Overview
Dependencies
494
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    md-links-de-vale

Library to extract linkages from markdown documents


Version published
Maintainers
1
Created

Readme

Source

mdLinks.js

Library to extract linkages from markdown documents

Installation

Install using npm

$ npm install md-links-de-vale

Importing

You can also import it using require

let mdLinks= require('md-links-de-vale');

Uso

mdLinks (path,options); can accept absolute or relative routes. Accepts files or directories with .md extension

Executable

md-links <path-to-file> [options]

Examples

$ md-links ./some/example.md
./some/example.md http://algo.com/2/3/ Link a algo
./some/example.md https://otra-cosa.net/algun-doc.html algún doc
./some/example.md http://google.com/ Google

Future versions

Options

--Validate

to find out if the link works or not. output:incluye la palabra ok o fail después de la URL, así como el status de la respuesta recibida a la petición HTTP a dicha URL.

$ md-links ./some/example.md --validate
./some/example.md http://algo.com/2/3/ ok 200 Link a algo
./some/example.md https://otra-cosa.net/algun-doc.html fail 404 algún doc
./some/example.md http://google.com/ ok 301 Google 

--stats

Output: will be a text with basic statistics about the links.

$ md-links ./some/example.md --stats
Total: 3
Unique: 3

--Validate --stats

To obtain statistics that need validation results.

$ md-links ./some/example.md --stats --validate
Total: 3
Unique: 3
Broken: 1

If you want to collaborate with my repository

[GitHub] https://github.com/valeskaperezrretamal/SCL008-md-links

FAQs

Last updated on 30 Apr 2019

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