Welcome to the QR Code Generator repository! This simple Node.js application takes a URL input from the user and generates a corresponding QR code image. It also saves the user input to a text file for future reference.
- User-friendly Interface: Utilizes the inquirer npm package to provide a seamless user experience for inputting URLs.
- QR Code Generation: Uses the qr-image npm package to transform the user-entered URL into a QR code image.
- Data Persistence: Saves the user input to a text file using the native fs module for easy retrieval.
- Clone this repository to your local machine.
- Navigate to the project directory.
- Run
npm install
to install the necessary dependencies.
- Open a terminal and navigate to the project directory.
- Run
node index.js
to start the application. - Follow the prompts to enter your URL.
- Once entered, a QR code image will be generated and saved as
my_png.png
. - The entered URL will also be saved in
inputs.txt
.
- Node.js
- npm (Node Package Manager)
- inquirer: Interactive CLI prompts for user input.
- qr-image: Library to generate QR codes.
- fs: Node.js file system module for file operations.
Contributions are welcome! Feel free to fork this repository and submit pull requests for any enhancements or bug fixes.