UNPKG

qrcode-next

Version:

QRCode / 2d Barcode api with both server side and client side support using canvas

9 lines (8 loc) 270 B
const big = require('./terminal/terminal') const small = require('./terminal/terminal-small') exports.render = function (qrData, options, cb) { if (options && options.small) { return small.render(qrData, options, cb) } return big.render(qrData, options, cb) }