Socket
Socket
Sign inDemoInstall

cek

Package Overview
Dependencies
69
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    cek

simple http(s) check


Version published
Maintainers
1
Install size
756 kB
Created

Readme

Source

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

FAQs

Last updated on 11 Jul 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc