Skip to content

vhcaldas/SAP003-md-links

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Markdown Links

Index


1. Product Backlog

In this project, it was created a library that can be accessed by a command line interface (CLI). The module can be imported in Node.js, and it offers an interface where you can follow an .md file to print an array with objects containing:

a. a text: text inside the Markdown;

b. an href: the found URL.

2. Install

One of the requisites to use this library is to previously install Node.js on your computer. It can be acessed by https://nodejs.org/en/.

Then, the installation can be made by acessing the link npm install -g vhcaldas/SAP003-md-links.

This module can also be imported by require, as on this example:

> const mdlinks = require('mdlinks');
> mdlinks('path/mdfile.md')
  .then((link) => {
  console.log(`${text}: ${href}`)
})
  //returns 'title: link'

3. CLI (Command Line Interface)

This application can be executed by terminal as the following example:

md-links <path-to-file>
$ md-Links ./some/example.md

About

Library that analyzes .md files to find links.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%