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

validate-link-sr

v1.0.0

Published

Libreria en la que el usuario puede validar sus archivos Markdown

Readme

Markdown Links

Índice


1. Preámbulo

Markdown md-links

mdLinks es una herramienta de node js que nos ayuda a validar archivos markdown, permitiendonos saber:

  1. cantidad de links
  2. links roto
  3. links unicos.

2. Instalacion

  • para instalar esta herramienta te sugerimos continuar los siguientes pasos:
  1. instalar mdLinks de forma global
npm install -g  validate-link-sr
  1. También puede instalar mdLinks como una dependencia de desarrollo:
npm install validate-link-sr --save-dev
  1. puede usar github para su instalación
npm install https://github.com/SandraLore18/DEV002-md-links.git

3. Uso

  • una vez instalada la herramienta a su proyecto , continúa los siguientes pasos:
  1. si se instala de forma global solo es llamar la herramienta y pasar el archivo markdown
validate-link-sr <path-name-file.md>
  1. si lo instaló como una dependecia de desarrollo utilice el siguiente comando:
npx validate-link-sr <path-name-file.md>
  • obtendrá información de todos los links encontrados en su archivo .md
[
  {
    file: "name of your file",
    link: "name of the link",
    text: "content of the link"
  },
  {
    file: "name of your file",
    link: "name of the link",
    text: "content of the link"
  },
  {
    file: "name of your file",
    link: "name of the link",
    text: "content of the link"
  }
]

Opcion validate

  • puede usar la opcion --validate para comprobar el estado de su link, para usarlo siga los siguientes pasos:
validate-link-sr <path-name-file.md> --validate
npx validate-link-sr <path-name-file.md> --validate
  • tendrá el siguiente resultado:
[
  {
    file: "name of your file",
    link: "name of the link",
    text: "content of the link",
    status: 200,
    OK: "OK"
  },
  {
    file: "name of your file",
    link: "name of the link",
    text: "content of the link",
    status: 404,
    OK: "fail"
  },
  {
    file: "name of your file",
    link: "name of the link",
    text: "content of the link",
    status: 200,
    OK: "OK"
  }
]

Opción stats

  • puede usar la opción --stats si deseas ver las estadisticas de tus links, ejecuta el siguiente comando :
validate-link-sr <path-name-file.md> --stats
npx validate-link-sr <path-name-file.md> --stats
  • obtendrá el siguiente resultado:
[
  {
    totalFiles: 00,
    totalUnique: 00
  },
    {
    totalFiles: 00,
    totalUnique: 00
  },
    {
    totalFiles: 00,
    totalUnique: 00
  }
]
  • obtendrá una pequeña estadisticas de la cantidad de link que hay y sobre ttodo los links que no se repiten en su archivo md

validate & stats

  • si usa la opción --validate y la opción --stats obtendrá una sección especial, y es poder ver los links que no se encuentran en funcionamiento.

  • ejecute el siguiente comando:

validate-link-sr <path-name-file.md> --validate --stats
npx validate-link-sr <path-name-file.md> --validate --stats
  • obtendrá el siguiente resultado:
[
  {
    totalFiles: 00,
    totalUnique: 00,
    broken: 0,
  },
    {
    totalFiles: 00,
    totalUnique: 00,
    broken: 0,
  },
    {
    totalFiles: 00,
    totalUnique: 00,
    broken: 0
  }
]

4. Consideraciones Generales

Organización y plán de acción

  • Git-Hub Projects, para crear el plan de acción para priorizar y organizar el trabajo.

md-links

Diagrama de flujo

md-links

Author