Skip to content

QRCode

This module allows you to generate QRCode from string and return an object or display it. This module is based on qrcode library created by soldair

Usage

fromString

const { QRCode } = require("@bcode-tech/bcode-sdk");

const textToHash = "your-text";

// Returns buffer of QRCode
const buffer = Hash.fromString(textToHash).buffer();

// Print QRCode on console
Hash.fromString(textToHash).print();