npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

ssl-verifier

v1.0.0

Published

Package that verifies SSL information from a URL.

Readme

Table of contents

About

ssl-verifier is a package that verifies SSL information from a URL.

Installation

Node.js v14.16.1 or newer is recommended.

Install: npm install ssl-verifier

Options

| Option | Default | Description | | ------------------ | ------- | -------------------------------------------------- | | method | GET | Can be HEAD too | | port | 443 | Your SSL/TLS entry point | | agent | default | Default HTTPS agent with { maxCachedSessions: 0 } | | rejectUnauthorized | false | Skips authorization by default |

Example usage

const SSL = require("ssl-verifier");

SSL.Info("https://github.com"/*, {port: 443, method: "GET"}*/).then(data => {
  
  console.log(data);
  
}).catch(error => {

  console.log(error);
  
});

Response Example

{
  subject: {
    commonName: "github.com",
    organization: "GitHub, Inc.",
    location: "San Francisco, California, US"
  },
  issuer: {
    commonName: "DigiCert High Assurance TLS Hybrid ECC SHA256 2020 CA1",
    organization: "DigiCert, Inc.",
    location: "US"
  },
  subjectAlternativeName: [ "github.com", "www.github.com" ],
  valid: true,
  validFrom: "Mar 25 00:00:00 2021 GMT",
  validTo: "Mar 30 23:59:59 2022 GMT",
  daysRemaining: 281,
  certificate: {
    OCSP: {
      url: [ "http://ocsp.digicert.com" ]
    },
    CA: {
      issuers: {
        url: [ "http://cacerts.digicert.com/DigiCertHighAssuranceTLSHybridECCSHA2562020CA1.crt" ]
      }
    }
  },
  bits: 256,
  modulus: undefined,
  exponent: undefined,
  publicKey: "<Buffer... 15 more bytes>",
  asn1Curve: "prime256v1",
  nistCurve: "P-256",
  fingerPrint: "84:63:B3:A9:29:12:CC:FD:1D:31:47:05:98:9B:EC:13:99:37:D0:D7",
  fingerPrint256: "0A:E3:84:BF:D4:DD:E9:D1:3E:50:C5:85:7C:05:A4:42:C9:3F:8E:01:44:5E:E4:B3:45:40:D2:2B:D1:E3:7F:1B",
  ExtendedKeyUsage: [ "1.3.6.1.5.5.7.3.1", "1.3.6.1.5.5.7.3.2" ],
  serialNumber: "0E8BF3770D92D196F0BB61F93C4166BE",
  raw: "<Buffer... 1240 more bytes>"
}

Expected Errors

If a problem occurs in the process, one of these errors might be triggered.

Invalid url - Invalid protocol - Invalid options - Invalid method - Invalid port - No certificate ENOTFOUND - EPROTO - ERR_INVALID_URL - ERR_SOCKET_BAD_PORT - ERR_INVALID_ARG_TYPE

Links

Help

If you are experiencing problems, or you just need a nudge in the right direction, please do not hesitate to create a New Issue on Github repository.