Full Page Screenshot

Generate a full page screenshot over the target URL

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

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

  return data.screenshot
}

const result = await fullScreenshot(
  'https://eosrei.github.io/emojione-color-font/full-demo.html'
)

mql.render(result)