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 🙏

© 2024 – Pkg Stats / Ryan Hefner

markdown-links-finder

v1.0.1

Published

Leer y analizar archivos en formato Markdown para verificar los links que contengan y reportar algunas estadísticas.

Downloads

8

Readme

Proyecto - Markdown-links-finder

Dentro de una comunidad de código abierto, nos han propuesto crear una herramienta usando Node.js, que lea y analice archivos en formato Markdown, para verificar los links que contengan y reportar algunas estadísticas.

En respuesta a esta petición nace "Markdown-links-finder", librería de Node.js que permite al usuario, por medio de comandos, leer y analizar archivos con extensión ".md". La finalidad de esta librería es que al revisar una ruta o el nombre de un archivo, recibamos todos los links que se encuentran en el archivo, además del texto incluido y por medio de un nuevo comando, conocemos el estado de estos links, ya que muchas veces están rotos o ya no son válidos y eso perjudica mucho el valor de la información que se quiere compartir.

Características generales de "Markdown-links-finder"

*Encuentra (lee) los archivos con extensión ".md". *Muestra en la terminal todos los links encontrados en el archivo, además de su texto y la ruta. *Por medio del comando --validate, muestra el estado de los links.

Instalación

Primero que todo para instalar esta librería debe tener instalado Node.js.

Posteriormente, debe ejecutar los siguientes comandos en la terminal:

Instalación de dependencias:

marked:
  • $npm install --save marked
node-fetch:
  • $ npm install node-fetch --save
colors:
  • npm install colors

Instalación de "Markdown-links-finder":

Para implementar esta librería debes ingresar el siguiente comando:

  • npm install markdown-links-finder

Uso

Para ejecutar la librería deber usar los siguientes comandos:

$ md-links <ruta-de-archivo> o $ mdlinks <nombre-de-archivo.md>

Ejemplo de uso:

md-links $C:\Users\CaroloFantasma\Documents\scl-2018-01-FE-markdown\README.md

/posicionarse-en-la-ruta-del-archivo/ md-links README.md

Resultado md-links:

  • href: URL encontrada.
  • text: Texto que aparecía dentro del link (<a>).
  • file: Ruta del archivo donde se encontró el link.

$ md-links <ruta-de-archivo> --validate o $ mdlinks <nombre-de-archivo.md> --validate

Ejemplo de uso:

md-links $C:\Users\CaroloFantasma\Documents\scl-2018-01-FE-markdown\README.md --validate

/posicionarse-en-la-ruta-del-archivo/ md-links README.md --validate

Resultado --validate:

Ruta:https://www.google.com/ 200 OK Ruta:https://github.com/CaroFantasma 404 Not Found

Versión

Markdown-links-finder se encuentra en su versión 1.0.1, que incluye:

  • Lectura de archivos ".md"
  • Ruta
  • Nombre de archivo
  • Links
  • Texto de links
  • Validación de links con --validate

Documentación utilizada para crear este proyecto:

Planificación

En lugar de utilizar issues y milestones, se decidió utilizar Trello para planificar este proyecto, puede revisar la planificación en el siguiente link:

Planificación de Markdown-links-finder

NPM

Markdown-links-finder

Autor

Carolina Lastra Cofré