Skip to content

Instantly share code, notes, and snippets.

View artemlatark's full-sized avatar
🎯
Focusing

Artem artemlatark

🎯
Focusing
View GitHub Profile
@artemlatark
artemlatark / index.js
Last active June 24, 2023 10:39
QR with rounded corners and logo
import QRCode from 'qrcode';
import { qrRender } from './qrRender';
function QR() {
const qrData = '12312312312';
const options = {
color: 'colored',
logo: 'fillstuff',
};
const qrSvg = qrRender(QRCode.create(qrData, { errorCorrectionLevel: 'Q' }), options);