Gathering detailed insights and metrics for asciidoc-link-check
Gathering detailed insights and metrics for asciidoc-link-check
Gathering detailed insights and metrics for asciidoc-link-check
Gathering detailed insights and metrics for asciidoc-link-check
Checks if all hyperlinks in an asciidoc file are alive(or dead).
npm install asciidoc-link-check
Typescript
Module System
Node Version
NPM Version
JavaScript (94.21%)
Dockerfile (5.79%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
8 Stars
85 Commits
7 Forks
3 Watchers
3 Branches
4 Contributors
Updated on May 12, 2024
Latest Version
1.0.18
Package Id
asciidoc-link-check@1.0.18
Unpacked Size
18.13 kB
Size
6.28 kB
File Count
7
NPM Version
10.5.0
Node Version
20.5.1
Published on
Apr 08, 2024
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1
🚨 Maintenance notice (November 2023)This action is now in maintenance only mode. I am working on a new tool similar to this action but one that reduces false positives and includes the most requested features. I am currently working on developing and testing Linkspector, and I hope to release it soon. In the meantime, I'll support this utility in maintenance-only mode as I want to focus more on Linkspector. I appreciate your understanding and patience. If you're interested in Linkspector, follow its progress on its GitHub repository. Thank you for using this action, and I hope you will enjoy Linkspector when it is ready. |
(Based on markdown-link-check module)
Install with npm
run:
1npm install -g asciidoc-link-check
(Optional) Use the -p
or --progress
switch to view progress.
1asciidoc-link-check README.adoc --progress
1asciidoc-link-check https://github.com/gaurav-nelson/asciidoc-link-check/blob/master/README.adoc
1cat <filename>.adoc | asciidoc-link-check -p
Check recursively in the current directory:
1find . -name \*.adoc -exec asciidoc-link-check -p {} \;
Check recursively in the other directories:
1find <directory> -name \*.adoc -exec asciidoc-link-check -p {} \;
1{ 2 "ignorePatterns": [ 3 { "pattern": "^https://192.17" }, 4 { "pattern": "^https://www.google" } 5 ] 6 7}
asciidoc-link-check README.adoc -c <configfile.json>
NOTE
To see other options that
asciidoc-link-check
supports, seemarkdown-link-check
config file format at https://github.com/tcort/markdown-link-check#config-file-format
To add the module to your project, run:
1npm install --save asciidoc-link-check
Clone the repository:
git clone https://github.com/gaurav-nelson/asciidoc-link-check.git
Open the repository directory:
cd asciidoc-link-check
Build a Docker image:
docker build --tag asciidoc-link-check .
Add current directory with your test.adoc
file as read only volume to the
docker run
command:
docker run -v ${PWD}:/tmp:ro --rm -i asciidoc-link-check /tmp/test.adoc
Use the following function:
1asciidocLinkCheck(asciidoc, [opts], callback)
Accepts a string containing asciidoc
formatted text and a callback
function,
extracts all links and checks if they are alive or dead. Then calls the
callback
function with (err, results)
.
opts
optional objects
ignorePatterns
: An array of objects of regular expressions patterns.1'use strict'; 2 3var asciidocLinkCheck = require('asciidoc-link-check'); 4 5asciidocLinkCheck('xref:https://www.google.com[Google]', function (err, results) { 6 if (err) { 7 console.error('Error', err); 8 return; 9 } 10 results.forEach(function (result) { 11 console.log('%s is %s', result.link, result.status); 12 }); 13});
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
3 existing vulnerabilities detected
Details
Reason
Found 4/19 approved changesets -- score normalized to 2
Reason
project is archived
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More