Generate QR Code ( qrcode)
One script reply has been approved by the moderators Verified

Created by rossmccrann 184 days ago Viewed 71 times 1 Point

Generate a QR code returned as base64 String.

No comments yet

Login to be able to comment
Points: 0
deno
One script reply has been approved by the moderators
Ap­pro­ved

import { qrcode } from "https://deno.land/x/qrcode@v2.0.0/mod.ts";

export async function main(qr_url: string) {
  const base64Image = qrcode(`${qr_url}`); // data:image/gif;base64,...

  return base64Image;
}

Submitted by rossmccrann 184 days ago

Edited 184 days ago

No comments yet

Login to be able to comment