Git Product home page Git Product logo

ssl-labs-screenshot-js's Introduction

SSL Labs Screenshot

npm version Known Vulnerabilities FOSSA Status

Capture a trimmed screenshot of the SSL Labs report for a given domain.

Requirements

  • Node.js (version 14 or higher)
  • A modern operating system capable of running Puppeteer (Windows, macOS, or Linux)

Installation

Install the package globally to use it as a command-line tool:

npm install -g ssl-labs-screenshot

Or, install it locally for use in your project:

npm install ssl-labs-screenshot

Usage

Command Line

After installing the package globally, you can use the ssl-labs-screenshot command:

ssl-labs-screenshot example.com

This will generate a screenshot named example.com_report.png in the current directory.

In Your Project

You can also use the captureSSLLabsScreenshot function in your project:

import { captureSSLLabsScreenshot } from 'ssl-labs-screenshot';
captureSSLLabsScreenshot('example.com');

Features

  • Capture a detailed screenshot from SSL Labs.
  • Automatic navigation to a IPv4 host if both IPv4 and IPv6 hosts are present.
  • Returns the overall SSL rating grade for the domain.
  • Error handling for invalid domains or issues with SSL Labs.

Example Output

✔ Overall rating: A
✔ Screenshot saved as www.ssllabs.com_report.png

Issues and Feedback

For any issues, feedback, or suggestions, please open a new issue in the GitHub repository.

License

The scripts and documentation in this project are released under the MIT License

FOSSA Status

ssl-labs-screenshot-js's People

Contributors

marksowell avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

fossabot

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.