link-chek
v1.0.0
Published
CLI link checker for files and webpages
Downloads
4
Maintainers
Readme
linkChek
CLI tool to check links from a html file or url
Install
npm install -g <https://github.com/joelazwar/linkChek>How to use
linkChek -l [Filename or Webpage (Absolute) URL]

HTTP Responses
- [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.)
Options
To check if HTTP links work with HTTPS
linkChek -l [Filename or Webpage (Absolute) URL] -oTo set a Timeout
linkChek -l [Filename or Webpage (Absolute) URL] -t 7000Output JSON Option
Outputs JSON array consisting of url, and response status values
linkChek -l [Filename or Webpage (Absolute) URL] -jAll/Good/Bad Flags
- 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/--badVersion Number
linkChek -vHelp Option
linkChek -hTests
To run tests, use the npm script
npm testor
npm test [component].test.jsLicense
This project is licensed under the MIT License - see the LICENSE file for details
