Skip to content

encodeQR

encodeQR(text, options?): QRMatrix

Defined in: encoder.ts:122

Encode text as a QR Code matrix.

The returned matrix is a square 2-D boolean array (true = dark module). Render with any output (SVG, canvas, PNG, terminal).

string

EncodeOptions = {}

QRMatrix