This project uses Node.js to accomplish three tasks:
- Get user input using the
inquirer
npm package. - Convert the user-entered URL into a QR code image using the
qr-image
npm package. - Save the user input to a text file using the native
fs
module.
Before you begin, ensure you have met the following requirements:
- You have installed Node.js (which includes npm).
-
Clone the repository:
git clone https://github.com/anuragjain-git/qr-code-generator.git
-
Navigate to the project directory:
cd qr-code-generator
-
Install the dependencies:
npm install inquirer qr-image
To use this project, follow these steps:
-
Run the script:
node index.js
-
You will be prompted to enter a URL:
Type in your URL:
-
After entering the URL, the following will happen:
- A QR code image (
qr_img.png
) will be generated and saved in the project directory. - The entered URL will be saved to a text file (
URL.txt
).
- A QR code image (