Generate a PDF over the target URL
pdf.js
const mql = require('@microlink/mql')
const pdf = async (url, opts) => {
const { data } = await mql(url, {
meta: false,
pdf: true,
...opts
})
return data.pdf
}
const result = await pdf('https://rauchg.com/2014/7-principles-of-rich-web-applications')
mql.render(result)