used by @baked/qr-react
import QRCode, { ErrorCorrectionLevels } from '@baked/qr-util';
const qr_matrix = new QRCode('https://google.com', {
ecl: ErrorCorrectionLevels.M,
}).encode(); // => number[][]
- the generated codes are not 100% right yet. Anything but the lowest ecl can be scanned fine on iOS and android
- No kanji encoding mode support (yet)