A simple Node.js project that generates a QR code from a user-input URL. The generated QR code is saved as an image, and the URL is stored in a text file.
- Takes user input for a URL.
- Generates a QR code using
qr-imagepackage. - Saves the QR code as
qr_img.png. - Stores the URL in
URL.txt.
- Node.js
- Inquirer.js (for user input)
- qr-image (for QR code generation)
- fs (File System module) (to save files)
- Clone the repository:
git clone https://github.com/Anshuman-02/QR-Code-Generator.git
- Navigate to the project folder:
cd QR-Code-Generator - Install dependencies:
npm install
- Run the script:
node solution.js
- Enter a URL, and the QR code will be generated as
qr_img.png!
#NodeJS #QRCode #WebDevelopment #JavaScript #OpenSource #CodingProject #Automation