1.0.4 • Published 5 years ago

md-links-marinaestefania v1.0.4

Weekly downloads
17
License
-
Repository
-
Last release
5 years ago

Markdown Links Project

Demo

npm.io

Introduction

enter image description here

This is a library created in JavaScript using Node.js® which is a JavaScript runtime built on Chrome's V8 JavaScript engine.

This library can be used to check the links' file with .md (Markdown) extension and then report some statistics.

The Flowchart's project goes like this:

For better resolution click here

Markdown can be defined as a plain text formatting syntax used to write content on the web. It’s commonly used by writers and programmers to write quickly without having to take time using the formatting toolbar of text editors.

How to use:

Installation

At your console stay in the folder where you want to install the module and all you have to do is write this in the Command Line Interface (CLI): npm i md-links-marinaestefania --save

Imgur

Another thing you can do is clone or download this repository at your computer and then follow user guide.

User Guide

A new folder should be created. Inside it you can find an exampleFile.md to practice but if you want to try with a diferent file you just have to make sure that enter the correct path in the CLI. At present, it only supports files.md wich means that you can't put a folder path but in the future I will be working on it.

Write in the CLI the standar sentense followed by one of the next key words to get into an option:

standar sentence: node pathOfTheFilemd-links.js fileToCheckLinks

Option 1: don't write any option. Use this option if you want to print on screen all the links and their respective titles gotten from the file that you choose to check.

Example:
node src/md-links.js src/exampleFile.md Imgur

Option 2: validate Use this option if you want to see the list of links and its HTTP status codes. That way you could know if the url's are active or not.

Example:
node src/md-links.js src/exampleFile.md validate Imgur

Option 3: stats Use this option if you want to know the total amount of the links contained in the file given. Example:
node src/md-links.js src/exampleFile.md statsImgur

Option 4: validate-stats Use this option to see the total of links, How many links are working and how many links presents bad request. Example:
node src/md-links.js src/exampleFile.md validate-statsImgur

Documentation

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago