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-mocgor

v0.1.0

Published

The Md-mocgor library is responsible for verifying links from a Markdown file

Downloads

3

Readme

Markdown Links 📂


imagen1


1. Preamble

Markdown is a very popular lightweight markup language among developers. It is used on many platforms they handle plain text (GitHub, forums, blogs, ...), and it is very common to find several files in that format in any type of repository.

These Markdown files usually contain links (links) that are often broken or no longer valid, and that greatly damages the value of the information that you want to share.

2. Project summary

The Md-mocgor library is responsible for verifying links from a Markdown file, showing statistical reports of total, broken or invalid links.

3. Flowcharts

Flowcharts API

imagen2

Flowcharts CLI

imagen3

4. Installation

For the installation of this library it will be necessary to execute the following command line in your terminal

npm i md-mocgor

5. User guide

Welcome to Md-Links

md-mocgor

imagen4

When you enter the command --help

md-mocgor --help

imagen5

When you enter the path

md-mocgor ./pruebas

imagen6

When you enter an invalid path

md-mocgor ../routeFail

imagen7

When you enter a route that has no links

md-mocgor ./pruebas/prueba.md

imagen8

When you enter a valid path with opcion --validate

md-mocgor ./pruebas --validate

imagen9

When you enter a valid path with opcion --stats

md-mocgor ./pruebas --stats

imagen10

When you enter a valid path with --stats --validate

md-mocgor ./pruebas --stats --validate

imagen11

When you enter a valid path with --validate --stats

md-mocgor ./pruebas --validate --stats 

imagen12

When you enter a valid path with an invalid option

md-mocgor ./pruebas --valida

imagen13

6. Checklist

General

  • [ ] Puede instalarse via npm install --global <github-user>/md-links

README.md

  • [X] Un board con el backlog para la implementación de la librería.
  • [X] Documentación técnica de la librería.
  • [X] Guía de uso e instalación de la librería

API mdLinks(path, opts)

  • [X] El módulo exporta una función con la interfaz (API) esperada.
  • [X] Implementa soporte para archivo individual
  • [X] Implementa soporte para directorios
  • [X] Implementa options.validate

CLI

  • [X] Expone ejecutable md-links en el path (configurado en package.json)
  • [X] Se ejecuta sin errores / output esperado
  • [X] Implementa --validate
  • [X] Implementa --stats

Pruebas / tests

  • [X] Pruebas unitarias cubren un mínimo del 70% de statements, functions, lines, y branches.
  • [X] Pasa tests (y linters) (npm test).