Skip to content

QR Code

QRCode object is used to generate a JavaScript byte array based on an input string.

Basic Usage

var qrCodeGenerator = require("utils/v4/qrcode");
var response = require("http/v4/response");

let qrCodeBytes = qrCodeGenerator.generateQRCode("https://www.dirigible.io");

console.log("QR Code Bytes: " + qrCodeBytes);

response.write(qrCodeBytes);
response.flush();
response.close();

Functions


Function Description Returns
generateQRCode(input) Generate a byte array from the input string byte array
Back to top