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

md-linksyan

v0.1.6

Published

Módulo para validar links de archivos Markdown.

Downloads

13

Readme

Image

md-linkyan

Índice


1. Introducción

Markdown es un lenguaje de marcado que nos permite dar formato a un texto de manera rápida y sencilla. Inicialmente diseñado para facilitar la creación de contenido web sin la necesidad de utilizar HTML directamente, se ha convertido en una herramienta versátil para dar estilo a cualquier tipo de texto, independientemente de su destino.

2. Resumen del proyecto

El objetivo es crear una herramienta utilizando Node.js para analizar archivos en formato Markdown y verificar los links que contienen. La herramienta proporcionará estadísticas sobre los links encontrados, como la cantidad total de links, la cantidad de links únicos y la cantidad de links rotos o no válidos.

Esta herramienta será útil para desarrolladores y comunidades de código abierto, ya que les permitirá identificar y corregir los links rotos en sus archivos Markdown, lo que mejorará la calidad y utilidad de la información compartida en plataformas como GitHub, foros y blogs.

3.Instrucciones de uso

Las siguientes instrucciones le permitirán instalar la librería en su terminal.

md-links Si pasamos la opción md-links nos retornará instrucciones acerca de los comandos.

$ md-links 

image

4.Instalación

La instalación se puede realizar por npm:

$ npm i md-linksyan              

5. Interfaz de Linea de Comando (CLI)

Se ejecuta de la siguiente manera a través del terminal:

$ md-links  <path> [options]

Ejemplo:

$ md-links <path>

image

image

Opciones

--validate Al ingresar el comando md-links path --validateel módulo hace una petición HTTP para averiguar si el link funciona o no, retonando las siguientes propiedades.

$ md-links <path> --validate

image

--stats Si pasamos la opción --stats el output (salida) obtenemos un texto con estadísticas básicas sobre los links, como el número total de links y links únicos.

$ md-links <path> --stats

image

--validate --stats o --stats --validate Si pasamos la opción --validate y --stats o Si pasamos la opción --stats y --validate nos retornara las estadísticas de los links totales, únicos y rotos.

$ md-links  <path> --validate --stats
$ md-links <path>  --stats --validate

image image

6. Referencias utilizadas

  • File-Sytem
  • Path module aquí esta la documentación (https://nodejs.org/api/path.html)
  • axios aquí esta la documentación (https://axios-http.com/docs/intro)
  • chalk
  • marked aquí esta la documentación (https://marked.js.org/)
  • cheerio aquí esta la documentación (https://cheerio.js.org/docs/intro)
  • Babel

Realizado por :

    YanettrDEV007😎