Crow
Crow is a node.js based URL checker that is automation friendly
It prints results in a table in your console.
Crow will exit with a non-zero exit code if one of the tests failed.
Installation
npm i -g crow
Config file
remotes.json
[
{
"protocol": "https",
"domain": "google.com",
"port": 443,
"path": "/"
}, {
"protocol": "http",
"domain": "google.com",
"port": 80,
"path": "/"
}, {
"protocol": "https",
"domain": "arkhaios.net",
"port": 443,
"path": "/"
}, {
"protocol": "http",
"domain": "nowhere",
"port": 80,
"path": "/"
}, {
"protocol": "https",
"domain": "elipsis.io",
"port": 443,
"path": "/login",
"method": "POST",
"headers": {
"Content-Type": "application/json"
},
"body": {
"email": "hello@elipsis.io",
"password": "123456"
}
}
]
Example
➜ ~ crow remotes.json
┌──────────────────────────────┬─────────────────────────────────┬────────┐
│ Remote │ Status │ Delay │
├──────────────────────────────┼─────────────────────────────────┼────────┤
│ https://arkhaios.net:443/ │ UNABLE_TO_VERIFY_LEAF_SIGNATURE │ 187ms │
├──────────────────────────────┼─────────────────────────────────┼────────┤
│ https://elipsis.io:443/login │ Error: HTTP 500 │ 360ms │
├──────────────────────────────┼─────────────────────────────────┼────────┤
│ https://google.com:443/ │ ok │ 2755ms │
├──────────────────────────────┼─────────────────────────────────┼────────┤
│ http://google.com:80/ │ ok │ 1649ms │
├──────────────────────────────┼─────────────────────────────────┼────────┤
│ http://nowhere:80/ │ getaddrinfo ENOTFOUND │ 31ms │
└──────────────────────────────┴─────────────────────────────────┴────────┘