import { qrcode } from "https://deno.land/x/qrcode@v2.0.0/mod.ts";
export async function main(qr_url = "https://google.com") {
const base64Image = await qrcode(`${qr_url}`); // data:image/gif;base64,...
return { 'html': `<iframe style="width:100vh;height:100vh" src="${base64Image}" frameborder="0"></iframe>` }
}
Submitted by dinesh k e502 473 days ago