CLI tool to check links from a html file or url
npm install -g link-chek
npx link-chek
linkChek -l [Filename or Webpage (Absolute) URL]
- [GOOD] HTTP Response Code 200 - Success
- [BAD] HTTP Response Code 400/404 - Bad Request/Not Found
- [UNKNOWN] HTTP Response Code 3XX/5XX/etc. - Other Response (Redirect, Server Error, etc.)
linkChek -l [Filename or Webpage (Absolute) URL] -o
linkChek -l [Filename or Webpage (Absolute) URL] -t 7000
Outputs JSON array consisting of url, and response status values
linkChek -l [Filename or Webpage (Absolute) URL] -j
- All - Outputs all results (Default)
- Good - Outputs only [GOOD] (200) Results
- Bad - Outputs only [BAD] (400/404) Results
linkChek -l [Filename or Webpage (Absolute) URL] --all/--good/--bad
linkChek -v
linkChek -h
To run tests, use the npm script
npm test
or
npm test [component].test.js
This project is licensed under the MIT License - see the LICENSE file for details