This script provides a way to bulk generate QR codes from a list of links specified in a CSV file. The generated QR codes are saved as SVG files in a directory named qr-codes
.
- Node.js installed on your system.
-
Ensure you have the required Node.js packages by running:
npm install
-
Place the script in your desired directory.
-
Prepare a CSV file named
links.csv
in the same directory as the script. Each line of this CSV file should contain a single link for which you want to generate a QR code.
-
After setting up your
links.csv
file, run the script:node <name-of-the-script-file>.js
-
The script will read each link from the CSV file and generate a QR code for it. Each QR code will be saved as an SVG file in the
qr-codes
directory, which will be created if it doesn't exist. -
The SVG files will be named in the format
qr-code-XXX.svg
whereXXX
is a three-digit index number corresponding to the link's position in the CSV file. -
After each QR code is generated, the script will log the path where the SVG file was saved.
- If there are any issues during QR code generation, the script will log an error message indicating the problem.
Please report any bugs or feature requests to the repository's issue tracker.
This script is open-source. Feel free to use, modify, and distribute it as you see fit.
Remember to always backup important data before running scripts on your system and ensure you have the appropriate permissions.