Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
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
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.