text: 'use strict'
  
  const mql = require('@microlink/mql')
  
  module.exports = async (url, opts) => {
    const { data } = await mql(url, {
      meta: false,
      insights: {
        lighthouse: {
          device: 'mobile',
          onlyCategories: [
            'performance',
            'best-practices',
            'accessibility',
            'seo',
            'pwa'
          ]
        },
        technologies: false
      },
      ...opts
    })
  
    return data.insights.lighthouse
  }
  
  module.exports.meta = {
    name: 'Lighthouse',
    logo: 'https://cdn.microlink.io/logos/lighthouse.png',
    description: 'Run Lighthouse on demand',
    examples: ['https://example.com']
  }
  