createQR()

Main API

createQR(data,options)

Creates a new QRCode instance with optimal data segmentation.

data

Type: String

The data to be encoded in the URL. See data types.

options

Type: Object

  • mask: number 0-7 specifying which mask to use
  • version: number 1-40 specifying which version to use
  • ecl: number 0-3 specifying which ecl to use
  • minVersion, maxVersion: specify a range of versions to try
  • minEcl, maxEcl: specify a range of ecls to try