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

tlsinfo

v1.0.1

Published

Library for inspecting SSL/TLS protocols and ciphers

Downloads

22

Readme

Description

Geather detailed information on the TLS / SSL configuration of a given server.

Dependencies

  • Node.JS v8 or v9

Supports

  • IPv6
  • unicode dns names like plan-österreich.org
  • servers with multiple IPv4 and / or IPv6 addresses
  • timeout (per connection)
  • SNI (Server Name Indication)
  • ES6 async / await
  • automatic toString() and inspect() formating for more readable console and debiggng output of result data

Usage

Note: SNI is enabled and uses the value of the host option by default. To disable SNI set the option servername to null.

const { TlsServiceAudit } = require('tlsinfo')

const tlsServiceAuditTask = new TlsServiceAudit({
  host: task.host,
  port: task.port,
  // servername: null, // optional to set or disable SNI
})
const result = await tlsServiceAuditTask.run()

All options which can be defined in the constructor of TlsServiceAudit, Certificate, ProtocolVersion, Cipher and TlsSocketWrapper: github.com -> DefinitelyTyped -> node -> index.d.ts.

The result is a object defined as TlsServiceAuditResult. Here is a example result as a json object: compilenix.org/cdn/tlsinfo-example-audit-result.json
Note: The unsupported list holds items that this lib can't test (because the Node.JS version does not support this particular ssl / tls / cipher combination).

If you only want to get the certificate/s you can use:

const { Certificate } = require('tlsinfo')

const certificate = new Certificate({
  host: task.host,
  port: task.port
})
const result = await certificate.fetch()

The same applies to protocols (TLS 1.0, 1.1 etc.) -> ProtocolVersion and ciphers (AES128-GCM-SHA256, DHE-RSA-AES128-SHA256 etc.) -> Cipher.

Heavily inspired by sslinfo.