Emails

Find any email inside a website

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

const emails = async (url, opts) => {
  const { data } = await mql(url, {
    meta: false,
    data: {
      emails: {
        selector: 'body',
        type: 'email'
      }
    },
    ...opts
  })

  return data.emails
}

const result = await emails('https://www.raycast.com')

mql.render(result)