1.0.0 • Published 8 months ago
@pittica/drive-qrcode v1.0.0
QR Code from Google Drive folders
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
| Variable | Type | Default | Notes |
|---|---|---|---|
| GOOGLE_APPLICATION_CREDENTIALS | String | null | Google JSON credentials default file path. |
| DRIVE_QRCODER_GOOGLE_CREDENTIALS | String | null | Google JSON credentials content. |
| DRIVE_QRCODER_SOURCE | String | null | Google Drive source folder ID. |
| DRIVE_QRCODER_DESTINATION_DRIVE | String | null | Google Drive destination folder ID. |
| DRIVE_QRCODER_DESTINATION_LOCAL | String | null | Local destination folder path. |
| DRIVE_QRCODER_SIZE | Integer | 300 | QR code image size. |
| DRIVE_QRCODER_MARGIN | Integer | 15 | Image margin size. |
| DRIVE_QRCODER_ROUNDED | Boolean | False | Indicates whether the image has rounde borders. |
| DRIVE_QRCODER_LOGO | String | null | The path or URL of the SVG logo image. |
| DRIVE_QRCODER_FORMAT | String | Output format. Possibile formats "SVG" or "PDF". | |
| DRIVE_QRCODER_COLOR_FORE | String | #000000 | Foreground color. |
| DRIVE_QRCODER_COLOR_DOTS | String | #000000 | QR code dots color. |
| DRIVE_QRCODER_COLOR_SQUARE | String | #000000 | Inner square color. |
| DRIVE_QRCODER_COLOR_BACKGROUND | String | #ffffff | Background color. |
| DRIVE_QRCODER_COLOR_BORDER | String | #ffffff | Border color. |
| DRIVE_QRCODER_FONT_COLOR | String | #000000 | Font color. |
| DRIVE_QRCODER_FONT_PATH | String | null | Font file path. |
| DRIVE_QRCODER_FONT_FAMILY | String | Arial | Font family name. |
Copyright
This project is licensed.
Copyright 2024-2025 Pittica S.r.l..
1.0.0
8 months ago