1.0.0 • Published 3 years ago
link-chek v1.0.0
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] -o
To set a Timeout
linkChek -l [Filename or Webpage (Absolute) URL] -t 7000
Output JSON Option
Outputs JSON array consisting of url, and response status values
linkChek -l [Filename or Webpage (Absolute) URL] -j
All/Good/Bad Flags
linkChek -l [Filename or Webpage (Absolute) URL] --all/--good/--bad
Version Number
linkChek -v
Help Option
linkChek -h
Tests
To run tests, use the npm script
npm test
or
npm test [component].test.js
License
This project is licensed under the MIT License - see the LICENSE file for details
1.0.0
3 years ago