UNPKG

@microlink/recipes

Version:

Build something with just a few of lines

24 lines (19 loc) 395 B
'use strict' const mql = require('@microlink/mql') module.exports = async (url, opts) => { const { data } = await mql(url, { meta: false, data: { html: { selector: 'html' } }, ...opts }) return data.html } module.exports.meta = { name: 'HTML', description: 'Get the rendered HTML markup of the target URL', examples: ['https://example.com'] }