function saveToQRCodes(accounts){

  const QRCode = require('qrcode')
  const fs = require("fs");

  const directory = "./qrCodes"
  if(!fs.existsSync(directory)){
    fs.mkdirSync(directory)
  }

  /** Windows is picky with filenames. */
  const sanitizeFilename = (filename) => filename.replace(/[\<>:"\/\\|?*#%&{}$+!`'=@]/g, "")
  
  accounts.forEach(account => {
    const name = account.name || ""
    const issuer = account.issuer || ""
    const secret = account.totpSecret

    const url = `otpauth://totp/${encodeURI(name)}?secret=${encodeURI(secret)}&issuer=${encodeURI(issuer)}`
    const file = `${directory}/${issuer || "No issuer"} (${sanitizeFilename(name)}).png`

    if(fs.existsSync(file)) {
      console.log(`${file.yellow} already exists.`)
    }else{
      QRCode.toFile(file, url, (error) => {
        if(error != null){
          console.log(`Something went wrong while creating ${file}`, error)
        }
        console.log(`${file.green} created.`)
      })
    }

  })
}
Generate qrcodes from the accounts that can be scanned with an authenticator app
@param accounts A list of the auth accounts