const mql = require('@microlink/mql')
const codepen = async (url, opts) => {
const { data } = await mql(url, {
meta: false,
screenshot: true,
styles: ['.main-header, .oldie-header {display: none}'],
...opts
})
return data.screenshot.url
}
const result = await codepen('https://codepen.io/fossheim/full/oNjxrZa')
mql.render(result)