microlink logo

Microlink Recipe for Lighthouse Report

lighthouseReport.js
const mql = require('@microlink/mql')

const lighthouseReport = async (url, opts) =>
  mql(url, {
    meta: false,
    insights: {
      lighthouse: true,
      technologies: false,
    },
    ...opts,
  })

const result = await lighthouseReport('https://example.com')
console.log(result)