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

adamantine-links

v1.0.0

Published

Adamantine Links is a library where you can extract your links in a markdown file, giving you important information about the status of each one. You can see which ones are broken with their respective HTTP status code.

Downloads

1

Readme

✦ Adamantine Links Library ✦

GitHub package.json version

Index


1. About the Library

Markdown is a lightweight markup language very popular among developers. It is used in many platforms that handle plain text (GitHub, forums, blogs, ...) and it's very common to find several files in that format in any kind of repository (starting with the traditional README.md).

These Markdown files usually contain links (links) which are often broken or no longer or no longer valid and this greatly impairs the value of the information to be shared.

Within an open source community, we have been proposed to create a tool using Node.js, that reads and parses files in the Markdown format to verify the links they contain and report some statistics.

2. Install and Quick Start

Install

You can execute the commands on your favorite terminal. After typing the name of the package adamantine-links you put the relative path of your markdown file including the md extension as a first parameter to get the basic statistics: href, text and file (url, the clickeable text of that url and the file you're executing). The outcome will be an array of objects.

Installing the package via npm

npm install adamantine-links -g

Install the package via GitHub

https://github.com/Adamantine-art/markdown-links.git

Quick Start

After you have installed the package you can just execute adamantine-links to see the welcome message where you will be shown the commands you can use.

adamantine-links

You can parse any .md file following this structure:

$ adamantine-links your-file.md --CLIoptions

Then the output will be an array of objects with all the links and their properties.

adamantine-links

3. Some Extra Stats

You can get more specific stats by using the following commands:

--validate

You get the additional properties of "status" and "ok".

adamantine-links

--stats

You get the number of total and unique links inside the markdown file.

adamantine-links

--validate --stats

You can get the total number of links, unique and broken links inside the markdown file.

adamantine-links