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)