Open glumb opened 4 years ago
Based on a quick test, it looks like alphanumeric encoding is not automatic.
This library worked well for me: https://github.com/soldair/node-qrcode
const QRCode = require('qrcode')
QRCode.toString(
'TEXT',
{ type: 'svg', errorCorrectionLevel: 'M', margin: 0 },
function (error, string) {
if (error) console.error(error)
console.log(string)
}
)
QR codes can also be encoded with numeric or alphanumeric encoding for optimal data density. Quoting https://en.wikipedia.org/wiki/QR_code
Is this done automatically in this library? How can I configure what encoding should be used?