npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

mdlinks-maisahr

v0.1.2

Published

Librería para identificar y validar links en archivos markdown.

Readme

Markdown Links

Índice


1. Descripción

El módulo mdLinks proporciona una manera sencilla y eficaz de realizar peticiones HTTP, obtener datos sobre las validaciones y estadísticas sobre los enlaces que se analicen. Este proyecto utiliza Yargs, Axios, Cheerio y Marked, así como Jest para realizar los tests.

Para la creación del proyecto, realicé un diagrama de flujo, que adjunto al final de este ReadMe.

2. Instalación

Para instalar, únicamente se necesita correr el siguiente comando en la terminal:

npm i mdlinks-maisahr

3. Uso

La estructura básica para utilizar mdLinks, es la siguiente md-links <ruta-del-archivo> --opciones

Según lo que necesites obtener, puedes utilizarlo de las siguientes maneras:

  • md-links <ruta-del-archivo> para obtener el enlace, la ruta absoluta del archivo en el que se encuentra y el texto que lo acompaña (limitado a 50 caracteres).

  • md-links <ruta-del-archivo> --validar para realizar la petición HTTP y obtener, además de la información básica, el código de estatus y "satisfactorio" o "fallido", según sea el caso de la validación.

  • md-links <ruta-del-archivo> --estadisticas para obtener la cantidad total de enlaces, así como el número de enlaces únicos.

  • md-links <ruta-del-archivo> --validar --estadisticas para realizar la petición HTTP y obtener, además de las estadísticas básicas, el número de enlaces rotos que se encontraron. El orden de las opciones es irrelevante.

En todos los casos, se reconocen los archivos sin extensión .md y se devuelve el mensaje "Ruta del archivo no es un archivo markdown."

Si te surge una duda respecto al uso, puedes acceder a la sección de help mediante md-links --help. Así mismo, si no se ingresa una ruta o las opciones correctas, esta sección se desplegará especificando cuál es el problema. Captura de pantalla de sección help

4. Ejemplos

Para esta serie de ejemplos, se utiliza la siguiente estructura de carpetas y archivos:

.
├── carpeta
|  ├── carpeta2
|  |   ├── carpeta3
|  |    ├── archivo3i.html
|  |    ├── archivo3ii.md
|  ├── archivo2i.md
|  ├── archivo2ii.js
├── archivo1.md
├── archivo2.md
├── archivo3.md 

Obtener información básica de los enlaces

Captura de pantalla de primer ejemplo

Realizar validación

Captura de pantalla de segundo ejemplo

Obtener estadísticas

Captura de pantalla de tercer ejemplo

Realizar validación con estadísticas

Captura de pantalla de cuarto ejemplo

Diagrama de flujo

Diagrama de flujo