microlink logo

Microlink Recipe

Interact with codepen.io

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

const codepen = async (url, opts) => {
  const result = await mql(url, {
    meta: false,
    screenshot: true,
    styles: ['.main-header, .oldie-header {display: none}'],
    ...opts,
  })

  return result
}

const result = await codepen('https://codepen.io/carolineartz/full/rNaGQYo')

mql.render(result)