link-checker-cli
Version:
CLI tool to check for broken links in a website or project
36 lines (26 loc) • 1.12 kB
Markdown
and anchor elements
[ ](https://nodejs.org) `>= 18` is required. There're two ways to use it:
To install, type this at the command line:
```shell
npm i link-checker-cli -g
```
After that, check out the help for available options:
```shell
blc --help inspect
```
Example:
```shell
blc inspect -s=http://yoursite.com -r
```
-s, --source Path to website
-r, --recursive Inspects every internal link of website. default: false
-img, --image Fetches all page images. (default: false)
-css, --style Add style links to response. (default: true)
-e, --external Add external links to response. (default: false)
-c, --concurrencySize Number of requests running simultaneous. (default: 10)
Flags -img (--image) -css(--style) -e(--external) can be marked as false which means CLI will skip those links. Count of the excluded links will be displayed in the final report.
> Find broken links, missing images