A simple Node.js command-line application that generates a QR code image from a user-provided URL.
- Prompts the user to enter a URL via the terminal.
- Generates a QR code image (
qr_img.png) for the entered URL. - Saves the entered URL to a text file (
URL.txt).
- Node.js (v14 or higher recommended)
- Clone this repository:
git clone <repository-url> cd QR-Code-Generator
- Install dependencies:
npm install
Run the application using Node.js:
node index.js- When prompted, enter the URL you want to convert into a QR code.
- After completion, you will find:
qr_img.png: The generated QR code image.URL.txt: The URL you entered, saved as plain text.
inquirer: For interactive command-line prompts.qr-image: For generating QR code images.fs: Node.js built-in module for file operations.
Narendran
ISC