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

maskay-links-md

v1.0.3

Published

maskay-links-md, is a library created in Node.js, its objectives is to verify the status of all existing links within a file with an .md extension

Downloads

2

Readme

Welcome 👩‍💻

contents


1. Project objectives

The maskay-links-md library parses files with the extension Markdown, allows you to obtain all the existing links within a file and with the commands you will be able to know more details about each and total statistics.

2 . Project flow chart

3. Documentation

npm i maskay-links-md

The default behavior does not validate if the URLs respond ok or not, it only has to identify the markdown file (from the path it receives as an argument), analyze the Markdown file and print the links it finds, along with the file path where it appears and the text inside the link.

Use the library in the terminal, with the following command:

maskay-links-md

After that it will ask you to place a path, this can be relative or absolute.

Choose an option:

--default
--validate
--stats
--stats --validate
--hepl
--exit

Arguments

path

Absolute or relative path to the file or directory.

Options

--default

Shows basic information about the content of the inspected file

--validate

If we choose the --validate option, the module must make an HTTP request to find out if the link works or not. If the link results in a redirect to a URL that answers ok, then we will consider the link as ok, otherwise it will be false

  • href: URL found.
  • text: Text that appeared inside the link (<a>).
  • file: Path of the file where the link was found.
  • status: HTTP response code.
  • ok: Message fail in case of failure or ok in case of success.
 --stats

If we pass the --stats option the output will be a text with statistics Basics about links.

  • Total: Total links within the file you are inspecting
  • Unique: Total number of links within the file you are inspecting that do not repeat
--stats --validate

We can also combine --stats and --validate to get statistics that need the validation results.

--help

Information about stock options.

--exit

Close or exit the program

For example:

### this is a content of a .md file
  ![This is an example image](https://ejemplo.com/imagen.jpg)
  [google]( http://google.com/)
  [yahoo]( http://search.yahoo.com/)
  [msn](http://search.msn.com/)
  [hotmail](http://hotmail.com/)
  [trend google](https://trends.google.com.mx/trends/explore?q=react,angular,vue)

Results :

Open the terminate and run maskay-links-md

Result when executing the option --default

Result when executing the option --validate

Result when executing the option --stats

Result when executing the option --stats --validate

<img src="img/6preview.png"width=50 height=45 >Result when executing the option --help

  • Source :

Repository of Laboratoria

  • Author :

👩 Melania Palomino