New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@fabernovel/heart-lighthouse

Package Overview
Dependencies
Maintainers
5
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fabernovel/heart-lighthouse

Analysis module of Heart, which analyses URLs with Google Lighthouse

  • 3.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6
decreased by-53.85%
Maintainers
5
Weekly downloads
 
Created
Source

Heart Lighthouse

Heart Lighthouse is an analysis module of Heart, which analyses URLs with Google Lighthouse.

Read more about the purpose, design and general installation of Heart.

Installation

  1. Install Google Chrome, as Google Lighthouse relies on it to analyze a web page

  2. Add the package to your project:

    npm install @fabernovel/heart-lighthouse
    
  3. Add Heart CLI if you have not already installed it. It is a peer-dependency of heart-lighthouse

    npm install @fabernovel/heart-cli
    

Usage

Analysis setup

The analysis setup must use the JSON format with a url key.

Simple

Using Heart CLI, to start a Google Lighthouse analysis of https://www.fabernovel.com looks like this:

npx heart lighthouse --inline '{"url":"https://heart.fabernovel.com"}'

Advanced

You can change the default Google Lighthouse configuration with the config key. Populate it with the values described in their documentation:

lighthouse.json:

{
  "url": "https://heart.fabernovel.com",
  "config": {
    "extends": "lighthouse:default",
    "settings": {
      "onlyAudits": [
        "first-meaningful-paint",
        "speed-index",
        "first-cpu-idle",
        "interactive"
      ]
    }
  }
}
npx heart lighthouse --file lighthouse.json

FAQs

Package last updated on 09 Apr 2020

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc