Last Updated: February 27, 2019
·
557
· RDIL

Checking links in markdown with Node.js

Hello everyone,
Recently I was writing a project on GitHub, and I decided that I wanted my markdown to be perfect. I went on a search for tools to help me achieve this goal and I ended up finding one that works well. Here is how to implement it in your project.

Requirements: Node.js, npm

Install tool command:
sudo npm install -g markdown-link-check@3.7.2
Windows is the same without the sudo part.

Use tool command:

Find all markdown files in the working directory and all subdirectories:
find . -name \*.md -exec markdown-link-check {} \;
NOTE: this command was made for linux, it may not work on windows and macos.