QRCode Singleton

QRCode()

Methods

get(code, size) → {String}

Parameters:

NameTypeArgumentDefaultDescription
codeString

Message to contain in the code.

sizeNumberoptional 10

Size of the QRCode image in dots. (1 dot is 37pixels)

Returns:

Link to the QRCode image.

Example

QRCode.get("My message to be included in the QRCode", 10); //Returns a link to a image 370px by 370px