Microlink × Parcel

Interact with
parcel.io

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

const parcel = async (url, opts) => {
  const { data } = await mql(url.endsWith('/raw') ? url : `${url}/raw`, {
    meta: false,
    screenshot: true,
    device: 'iPhone X',
    ...opts
  })

  return data.screenshot.url
}

const result = await parcel(
  'https://parcel.io/e/bfb95111-317b-4615-8b46-9e9bb6d9d365'
)

mql.render(result)