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

@dreipol/lighthouse-audits

Package Overview
Dependencies
Maintainers
4
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dreipol/lighthouse-audits

Collection of default audits from dreipol

  • 0.1.1
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
4
Weekly downloads
 
Created
Source

@dreipol/lighthouse-audits

Collection of useful lighthouse audits

Install

npm i @dreipol/lighthouse-audits --save-dev

Setup

After installing the module you have to add it to the lighthouse configuration.

const { audit, gatherer } = require('@dreipol/lighthouse-audits/MODULE');

Add the gatherer to the list of gatherers in the passes config

...
passes: [
        {
            passName: 'defaultPass',
            recordTrace: true,
            pauseAfterLoadMs: 10000,
            networkQuietThresholdMs: 10000,
            cpuQuietThresholdMs: 10000,
            gatherers: [
                gatherer, // importer from the  module
                'url',
                'scripts',
                'css-usage',
                'viewport',
                'viewport-dimensions',
                ...

Add audit to the list of audits in the lighthouse config

...
 audits: [
    audit, // importer from the  module
     'service-worker',
    'viewport',
    'without-javascript',

And the last step is to add a custom category (or add the result to an existing one)

...
categories: {
    dreipol: {
        name: 'Dreipol Audits',
        description: 'Dreipol audits',
        audits: [
            { id: '<MODULE>', weight: 5 },
        ],
    }
...

Modules

Search site for links leading to 404 pages

FAQs

Package last updated on 14 Mar 2018

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