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.
markdown-link-check
Advanced tools
checks the all of the hyperlinks in a markdown text to determine if they are alive or dead
Extracts links from markdown texts and checks whether each link is
alive (200 OK
) or dead. mailto:
links are validated with
isemail.
To add the module to your project, run:
npm install --save markdown-link-check
To install the command line tool globally, run:
npm install -g markdown-link-check
Given a string containing markdown
formatted text and a callback
,
extract all of the links and check if they're alive or dead. Call the
callback
with (err, results)
Parameters:
markdown
string containing markdown formatted text.opts
optional options object containing any of the following optional fields:baseUrl
the base URL for relative links.showProgressBar
enable an ASCII progress bar.callback
function which accepts (err, results)
.err
an Error object when the operation cannot be completed, otherwise null
.results
an array of objects with the following properties:link
the link
provided as inputstatus
a string set to either alive
or dead
.statusCode
the HTTP status code. Set to 0
if no HTTP status code was returned (e.g. when the server is down).err
any connection error that occurred, otherwise null
.'use strict';
var markdownLinkCheck = require('markdown-link-check');
markdownLinkCheck('[example](http://example.com)', function (err, results) {
if (err) {
console.error('Error', err);
return;
}
results.forEach(function (result) {
console.log('%s is %s', result.link, result.status);
});
});
The command line tool optionally takes 1 argument, the file name or http/https URL. If not supplied, the tool reads from standard input.
markdown-link-check ./README.md
markdown-link-check https://github.com/tcort/markdown-link-check/blob/master/README.md
cat *.md | markdown-link-check
Usage: markdown-link-check [options] [filenameOrUrl]
Options:
-h, --help output usage information
-p, --progress show progress bar
npm test
See LICENSE.md
FAQs
checks the all of the hyperlinks in a markdown text to determine if they are alive or dead
The npm package markdown-link-check receives a total of 26,254 weekly downloads. As such, markdown-link-check popularity was classified as popular.
We found that markdown-link-check demonstrated a healthy version release cadence and project activity because the last version was released less than 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.