UNPKG

@microlink/recipes

Version:

Build something with just a few of lines

20 lines (15 loc) 357 B
'use strict' const mql = require('@microlink/mql') module.exports = async (url, opts) => { const { data } = await mql(url, { meta: false, screenshot: true, ...opts }) return data.screenshot } module.exports.meta = { name: 'Screenshot', description: 'Generate a screenshot over the target URL', examples: ['https://vercel.com'] }