v0.4
- Adds a new
--json/-j
flag to print the link status as json.
Take it for a spin:
link-patrol -f <filename.md> -j | jq
{
"location": "https://example.com",
"statusCode": 200,
"errMsg": ""
}
{
"location": "https://gen.xyz/",
"statusCode": 200,
"errMsg": ""
}
{
"location": "https://reference.com",
"statusCode": 403,
"errMsg": ""
}
2024/01/30 00:05:37 one or more URLs have error status codes
exit status 1