microlink logo

Microlink Recipe for Universal Embed

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

const universalEmbed = async (url, opts) =>
  mql(url, {
    meta: false,
    iframe: {
      maxWidth: 350,
    },
    ...opts,
  })

const result = await universalEmbed('https://example.com')
console.log(result)