1.0.5 • Published 2 years ago

cek v1.0.5

Weekly downloads
-
License
Unlicense
Repository
-
Last release
2 years ago

cek

do some simple checks with http/https.

usage

var cek = require("cek");

cek("https://example.com/", function(result){

	console.log(result);

});

result is an object which consists of

propertypresentexplanation
successalwaystrue if webserver replied with http status code <400
statuson http(s) responsehttp status code
erron errorany error passed from request
typeif not successfultype of problem (connection,dns,tls,protocol,error,webserver,backend)
explainif not successfulhuman-readable explanation if possible
httpsif httpstrue if protocol is https
certvalidif valid tlsnumber of days that the used tls certificate is still valid
1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

7 years ago

1.0.0

7 years ago