1.0.0 • Published 10 months ago

@pittica/drive-qrcode v1.0.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
10 months ago

QR Code from Google Drive folders

GitHub License GitHub package.json GitHub top language NPM Version

Creates QR codes from Google Drive folder names.

Requirements

  • Google Drive API v3 enabled on Service Account.
  • A Service Account and Drives shared with it.

Environment Variables

VariableTypeDefaultNotes
GOOGLE_APPLICATION_CREDENTIALSStringnullGoogle JSON credentials default file path.
DRIVE_QRCODER_GOOGLE_CREDENTIALSStringnullGoogle JSON credentials content.
DRIVE_QRCODER_SOURCEStringnullGoogle Drive source folder ID.
DRIVE_QRCODER_DESTINATION_DRIVEStringnullGoogle Drive destination folder ID.
DRIVE_QRCODER_DESTINATION_LOCALStringnullLocal destination folder path.
DRIVE_QRCODER_SIZEInteger300QR code image size.
DRIVE_QRCODER_MARGINInteger15Image margin size.
DRIVE_QRCODER_ROUNDEDBooleanFalseIndicates whether the image has rounde borders.
DRIVE_QRCODER_LOGOStringnullThe path or URL of the SVG logo image.
DRIVE_QRCODER_FORMATStringPDFOutput format. Possibile formats "SVG" or "PDF".
DRIVE_QRCODER_COLOR_FOREString#000000Foreground color.
DRIVE_QRCODER_COLOR_DOTSString#000000QR code dots color.
DRIVE_QRCODER_COLOR_SQUAREString#000000Inner square color.
DRIVE_QRCODER_COLOR_BACKGROUNDString#ffffffBackground color.
DRIVE_QRCODER_COLOR_BORDERString#ffffffBorder color.
DRIVE_QRCODER_FONT_COLORString#000000Font color.
DRIVE_QRCODER_FONT_PATHStringnullFont file path.
DRIVE_QRCODER_FONT_FAMILYStringArialFont family name.

Copyright

This project is licensed.

Copyright 2024-2025 Pittica S.r.l..