Add digital catalog with shareable flipbook and ktg.montzar.ir deploy files.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import QRCode from "qrcode";
|
||||
|
||||
export async function makeQrPng(text: string): Promise<Buffer> {
|
||||
return QRCode.toBuffer(text, {
|
||||
type: "png",
|
||||
width: 512,
|
||||
margin: 1,
|
||||
errorCorrectionLevel: "M",
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user