microlink logo

Microlink Recipe

Generate a full page screenshot over the target URL

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

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

  return data.screenshot
}

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