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

@trinidadmedina/md-links

v0.2.0

Published

Librería para encontrar links dentro de archivos con extensión .md, y validar su estado en línea (si funcionan, están rotos o no existen). Está implementada en JavaScript para ser ejecutada con Node.js.

Readme

MD-LINKS by Trinidad Medina

Librería para encontrar links dentro de archivos con extensión .md, y validar su estado en línea (si funcionan, están rotos o no existen). Está implementada en JavaScript para ser ejecutada con Node.js.

Tener instalado

node.js
Npm

Instalación

`$ npm i @trinidadmedina/md-links`

Uso

Escribe en la terminal alguna opción:

1. `md-links 'ruta-directorio o archivo.md'`
2. `md-links 'ruta-directorio o archivo.md' --stats`   
3. `md-links 'ruta-directorio o archivo.md' --validate`

La ruta puede ser absoluta ('C:\Users\Juana\OneDrive\Escritorio\folder\file.md) o relativa ('file.md')

Valores de retorno

  1. md-links 'ruta-directorio o archivo.md'
    retorna información básica de los links encontrados:
  • href: URL encontrada
  • text: texto que aparece dentro del link <a>
  • line: línea del archivo en la que se encuentra el link
  • file: ruta del archivo que contiene el link
  1. md-links 'ruta-directorio o archivo.md' --stats
    retorna estadísticas sobre todos los links encontrados:
  • Total: cantidad de links encontrados en el archivo o directorio
  • Unique: cantidad de links únicos (no repetidos)
  • Broken: cantidad de links 'Not OK' y el motivo (Not Found, Gone...)
  • Unsupported: cantidad de links que no pudieron ser consultados (HTTP request) y el motivo
  1. md-links 'ruta-directorio o archivo.md' --validate
    retorna información de los links encontrados incluyendo su estado en línea:
  • href: URL encontrada
  • text: texto que aparece dentro del link <a>
  • line: línea del archivo en la que se encuentra el link
  • file: ruta del archivo que contiene el link
  • status: código de respuesta HTTP
  • statusText: mensaje con información sobre el estado (OK, Not Found, Gone...)

Ejemplos de uso

PS C:\Users\Juana\OneDrive\Escritorio> md-links 'file.md' --stats  

Links stats:
{
  Total: 69,
  Unique: 65,
  Broken: { 'Not Found': 1, 'Service Temporarily Unavailable': 2 },
  Unsupported: { 'request to http://community.la/modulos-librerias-paquetes-frameworks/175 
  failed, reason: getaddrinfo ENOTFOUND community.laboratoria.la': 1
  }
PS C:\Users\Juana\OneDrive\Escritorio> md-links 'folder' --validate

Links status:
[
  {
    href: 'https://developer.mozilla.org/en-US/docs/Learn/CSS/Building_blocks/The_box_model',
    text: 'The box model - MDN',
    line: 5,
    file: 'C:\Users\Juana\OneDrive\Escritorio\folder\file.md,
    status: 200,
    statusText: 'OK'
  },
    {
    href: 'https://openclassrooms.com/en/courses/diferencia-entre-expresion-y-sentencia',
    text: 'expresión vs sentencia',
    line: 490,
    file: 'C:\Users\Juana\OneDrive\Escritorio\folder\md-links.md',
    status: 410,
    statusText: 'Gone'
  }
]