{"version":3,"sources":["jsdelivr-header.js","/npm/simple-qr-code-generator@1.0.1/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,MAAM,GAAK,QAAQ,YACb,GAAK,QAAQ,MAGnB,SAAS,eAAe,GACtB,OAAO,GAAG,UAAU,EAAM,CAAE,KAAM,OACpC,CAGA,SAAS,WAAW,EAAO,GACzB,IACE,GAAG,cAAc,EAAM,GACvB,QAAQ,IAAI,oBAAoB,IAClC,CAAE,MAAO,GACP,QAAQ,IAAI,mCAAmC,aAAgB,IACjE,CACF,CAGA,OAAO,QAAU,CACf,8BACA","file":"/npm/simple-qr-code-generator@1.0.1/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/simple-qr-code-generator@1.0.1/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","const qr = require(\"qr-image\");\r\nconst fs = require(\"fs\");\r\n\r\n// Generate the QR Code\r\nfunction generateQRCode(text) {\r\n  return qr.imageSync(text, { type: \"png\" });\r\n}\r\n\r\n// Save to path\r\nfunction saveQRCode(image, path) {\r\n  try {\r\n    fs.writeFileSync(path, image);\r\n    console.log(`QR Code saved to ${path}`);\r\n  } catch (e) {\r\n    console.log(`Could not save the file to path ${path}. Error: ${e}`);\r\n  }\r\n}\r\n\r\n// Export the modules\r\nmodule.exports = {\r\n  generateQRCode,\r\n  saveQRCode,\r\n};\r\n"]}