Deno.js QR Code Module Tutorial to Create QR Codes and Print in on Terminal in TypeScript Full Project For Beginners



📇 QR Code


Generate QR codes in Deno, as base64-encoded images, completely dependency-free and requires no binary.

This is a port of zenozeng/node-yaqrcode, which itself is a port of the QR code generator in the d-project.



⭐ Getting started


import { qrcode } from "";
const base64Image = qrcode("bitcoin:ADDRESS?amount=0.5&label=ORDER"); // data:image/gif;base64,...





Alternatively, you can use it directly from the CLI by using deno run:

deno run <text>

You can also install it globally using the following:

deno install qrcode

Then, the package is available to run:

qrcode <text>

Leave a Reply