git clone <repository-url>
cd <repository-folder>npm install inquirer qr-imagenode index.js- The program will prompt you to enter a URL.
- Enter the desired URL when prompted.
- The program will:
- Generate a QR code and save it as
qr_img.png. - Save the URL in
URL.txt.
- Generate a QR code and save it as
Type in your URL: https://example.com
- A QR code image file named
qr_img.png. - A text file named
URL.txtcontaining the URL.
- If the terminal does not support interactive prompts, you'll see:
Prompt couldn't be rendered in the current environment. - If any other error occurs, the program will log the error message.
This project is open-source and free to use.