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

byte-weight-breakdown

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

byte-weight-breakdown

Byte weight breakdown by resource type for Google Lighthouse

  • 0.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

byte-weight-breakdown

Build Status Coverage Status

Custom audit for Google Lighthouse to provide a byte weight breakdown by resource type.

I think it nicely complements the total-byte-weight audit (i.e. the one with the UI message: 'Avoids enormous network payloads').

Usage

You have to use a custom Lighthouse configuration:

npm install lighthouse byte-weight-breakdown
ligthouse --config-path=config.js https://www.google.com

You can either extend the default (see examples/extends.js) or you can run this audit only (see examples/standalone.js).

Example output

JSON

  //...
  "audits": {
    "byte-weight-breakdown": {
      "id": "byte-weight-breakdown",
      //...
      "details": {
        "type": "table",
        "headings": [
          //...
        ],
        "items": [
          {
            "type": "Script",
            "count": 3,
            "totalBytes": 211215
          },
          {
            "type": "Document",
            "count": 1,
            "totalBytes": 44613
          },
          //...

HTML

screenshot

See also

csabapalfi/page-weight if you also want to interact with your page with Puppeteer.

FAQs

Package last updated on 13 Sep 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