Security News
The Unpaid Backbone of Open Source: Solo Maintainers Face Increasing Security Demands
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
mdlinks-dors
Advanced tools
Node library to validate and stats ok and broken URLs in a markdown file
mdlinks-dors is a nodejs library to get, validate, and get the stats of the URL links in a markdown file. It was developed in JavaScript and uses four dependencies: node-fetch, yargs, chalk, and jest.
To install write the following command line:
npm i mdlinks-dors
To execute the library write the shorcut mdlinks, the option command and the path after the --file flag as follows:
mdlinks [command] --file <path>
$ mdLinks validateStats --file /home/laboratoria159-pm/CDMX009-MdLinks/
Option: ValidateStats
0: /home/laboratoria159-pm/CDMX009-MdLinks/README.md
1: /home/laboratoria159-pm/CDMX009-MdLinks/file.md
2: /home/laboratoria159-pm/CDMX009-MdLinks/file1.md
3: /home/laboratoria159-pm/CDMX009-MdLinks/nofile.md
Select the number of the file path you want:
mdlinks validate --file <path>
Results are unfold as an array of objects with URL information:
[
{
href: 'https://dzone.com/articles/how-single-page-web-applications-actually-workkk',
text: 'SPA (algo) otro algo',
File: '/home/laboratoria159-pm/CDMX009-MdLinks/file1.md',
code: 404,
status: 'broken'
},
{
href: 'https://darwindigital.com/mobile-first-versus-responsive-web-design/',
text: 'mobile first',
File: '/home/laboratoria159-pm/CDMX009-MdLinks/file1.md',
code: 200,
status: 'ok'
},
{
href: 'http://darwindigital.com/mobile-first-versus-responsive-web-design/',
text: 'mobile',
File: '/home/laboratoria159-pm/CDMX009-MdLinks/file1.md',
code: 200,
status: 'ok'
}
]
mdlinks stats --file <path>
Results unfold as follows:
Url Ok: 2
Url broken: 1
mdlinks validateStats --file <path>
Results unfold as a combination of both validate and stats commands.
[
{
href: 'https://dzone.com/articles/how-single-page-web-applications-actually-workkk',
text: 'SPA (algo) otro algo',
File: '/home/laboratoria159-pm/CDMX009-MdLinks/file1.md',
code: 404,
status: 'broken'
},
{
href: 'https://darwindigital.com/mobile-first-versus-responsive-web-design/',
text: 'mobile first',
File: '/home/laboratoria159-pm/CDMX009-MdLinks/file1.md',
code: 200,
status: 'ok'
},
{
href: 'http://darwindigital.com/mobile-first-versus-responsive-web-design/',
text: 'mobile',
File: '/home/laboratoria159-pm/CDMX009-MdLinks/file1.md',
code: 200,
status: 'ok'
}
]
Url Ok: 2
Url broken: 1
Recuerda colocar en esta seccion los objetivos de aprendizaje que quedaron pendientes de tu proyecto anterior.
FAQs
Node library to validate and stats ok and broken URLs in a markdown file
We found that mdlinks-dors demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
Security News
License exceptions modify the terms of open source licenses, impacting how software can be used, modified, and distributed. Developers should be aware of the legal implications of these exceptions.
Security News
A developer is accusing Tencent of violating the GPL by modifying a Python utility and changing its license to BSD, highlighting the importance of copyleft compliance.