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)