text: // Require the package
  const QRCode = require('qrcode')
  
  function generate_QR(package) {
  
  
      let file_name = "./QRcodes/created_QRcodes/"+package.serial_number+".png"
  
      // Converting the data into String format
      let stringdata = JSON.stringify(package)
  
      // Converting the data into base64
  QRCode.toFile(file_name, stringdata, function (err, code) {
      if(err) return console.log("error occurred")
   })
   
  }
  
  module.exports={
      generate_QR : generate_QR
      
   };
  
  