Generate a JSON report and save it to a specific file

lighthouse

  • Analyzes web applications and web pages, collecting modern performance metrics and insights on developer best practices.
    More information: <https://github.com/GoogleChrome/lighthouse>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

lighthouse --output {{json}} --output-path {{path/to/file.json}} {{https://example.com}}

click the source code to copy