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

tls-checker

v1.0.0

Published

A Node.js module to check TLS versions and certificate information

Readme

TLS Configuration Checker

MIT License

A powerful Node.js tool for analyzing and validating TLS configurations across multiple domains simultaneously. Perfect for security audits, monitoring, and ensuring proper TLS setup across your infrastructure.

🚀 Features

  • Multi-domain Support: Check multiple domains in parallel
  • Comprehensive Analysis: Detailed TLS configuration inspection
  • Performance Optimized: Configurable concurrency and timeout settings
  • Rich Reporting: Detailed analysis results with full TLS information
  • Error Resilient: Robust error handling and reporting
  • Easy Integration: Simple API for programmatic usage

📦 Installation

# Using npm
npm install tls-checker

# Using yarn
yarn add tls-checker

# Using pnpm
pnpm add tls-checker

🔧 Usage

Basic Example

const TLSChecker = require('./src/TLSChecker');

// Initialize the checker
const checker = new TLSChecker({
    timeout: 1000,
    concurrency: 2,
    enableTrace: false
});

// Check multiple domains
const results = await checker.checkMultiple([
    'www.github.com',
    'www.nodejs.org',
    'www.npmjs.com'
]);

Advanced Usage

const TLSChecker = require('./src/TLSChecker');

async function performTLSAudit() {
    const checker = new TLSChecker({
        timeout: 2000,
        concurrency: 5,
        enableTrace: true
    });

    try {
        const results = await checker.checkMultiple([
            'www.github.com',
            'www.nodejs.org',
            'www.npmjs.com'
        ]);

        // Process results
        for (const [domain, result] of Object.entries(results)) {
            if (result.status === 'success') {
                console.log(`✅ ${domain}: TLS configuration valid`);
            } else {
                console.log(`❌ ${domain}: ${result.error}`);
            }
        }
    } catch (error) {
        console.error('Audit failed:', error);
    }
}

⚙️ Configuration Options

| Option | Type | Default | Description | |--------|------|---------|-------------| | timeout | number | 1000 | Request timeout in milliseconds | | concurrency | number | 1 | Number of simultaneous domain checks | | enableTrace | boolean | false | Enable detailed trace logging | | retries | number | 3 | Number of retry attempts for failed checks |

📝 Example Output

{
    "www.github.com": {
        "status": "success",
        "tlsInfo": {
            "protocol": "TLSv1.3",
            "cipher": "TLS_AES_128_GCM_SHA256",
            "certificateInfo": {
                "issuer": "DigiCert SHA2 High Assurance Server CA",
                "validFrom": "2023-01-01T00:00:00.000Z",
                "validTo": "2024-01-01T23:59:59.999Z"
            }
        }
    }
}

🚨 Error Handling

The tool provides comprehensive error handling for various scenarios:

  • Connection Timeouts: When a domain takes too long to respond
  • Invalid Domains: When domain names are malformed or unresolvable
  • TLS Configuration Issues: When TLS handshake fails or certificate is invalid
  • Network Problems: When network connectivity issues occur

Error responses include detailed information to help diagnose issues:

{
    "status": "error",
    "error": "CONNECTION_TIMEOUT",
    "message": "Connection timed out after 1000ms",
    "details": {
        "domain": "example.com",
        "timestamp": "2023-11-14T12:00:00.000Z"
    }
}

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🙏 Acknowledgments

  • Node.js TLS/SSL implementation
  • OpenSSL for TLS protocol support
  • Community contributors and feedback