UNPKG

link-checker-cli

Version:

CLI tool to check for broken links in a website or project

36 lines (26 loc) 980 B
## Broken Links checker > Find broken links, missing images and anchor elements ## Installation [Node.js](https://nodejs.org) `>= 18` is required. There're two ways to use it: ### Command Line Usage 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 blc --help sitemap ``` Example: ```shell blc inspect -s=http://yoursite.com -r blc sitemap -s=http://yoursite.com ``` ## Flags -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)