Screenshot

Generate a screenshot over the target URL

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

const screenshot = async (url, opts) => {
  const { data } = await mql(url, {
    meta: false,
    screenshot: true,
    ...opts
  })

  return data.screenshot
}

const result = await screenshot('https://vercel.com')

mql.render(result)