This simple QR code generator allows you to create QR codes from URLs. It uses the following packages:
inquirer
: For user input.qr-image
: For generating QR codes.fs
: For file operations.
-
Make sure you have Node.js installed on your system.
-
Clone or download this repository.
-
Navigate to the project directory in your terminal.
-
Install dependencies by running:
npm install
- Run the generator using:
node index.js
2.You’ll be prompted to enter a URL.
3.The QR code will be generated and saved as qr.png.
4.The URL will also be saved in url1.txt.
$ node index.js
? Enter URL: https://example.com
QR created!
The file has been saved!