yetzt / node-cek

simple http(s) check

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

property present explanation
success always true if webserver replied with http status code <400
status on http(s) response http status code
err on error any error passed from request
type if not successful type of problem (connection,dns,tls,protocol,error,webserver,backend)
explain if not successful human-readable explanation if possible
https if https true if protocol is https
certvalid if valid tls number of days that the used tls certificate is still valid

About

simple http(s) check


Languages

Language:JavaScript 100.0%