CLI link checker for files and webpages
npm install link-cheksh
npm install -g
`
How to use
`sh
linkChek -l [Filename or Webpage (Absolute) URL]
`
!GIF PREVIEW
!GIF PREVIEW
$3
- [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
$3
`sh
linkChek -l [Filename or Webpage (Absolute) URL] -o
`
$3
`sh
linkChek -l [Filename or Webpage (Absolute) URL] -t 7000
`
$3
Outputs JSON array consisting of url, and response status values
`sh
linkChek -l [Filename or Webpage (Absolute) URL] -j
`
$3
- All - Outputs all results (Default)
- Good - Outputs only [GOOD] (200) Results
- Bad - Outputs only [BAD] (400/404) Results
`sh
linkChek -l [Filename or Webpage (Absolute) URL] --all/--good/--bad
`
$3
`
linkChek -v
`
$3
`
linkChek -h
`
Tests
To run tests, use the npm script
`
npm test
`
or
`
npm test [component].test.js
``