Skip to content

Latest commit

 

History

History
43 lines (32 loc) · 1.53 KB

README.md

File metadata and controls

43 lines (32 loc) · 1.53 KB

QR Code Generator

This Node.js script facilitates the creation of QR codes by capturing user input for a URL. The generated QR code is saved as an image file (new_qr.png), and the entered URL is stored in a text file (link.txt).

Prerequisites

Ensure that Node.js is installed on your machine before running the script.

Installation

  1. Clone this repository: git clone https://github.com/your-username/qr-code-generator.git
  2. Navigate to the project directory: cd qr-code-generator
  3. Install dependencies: npm install

Usage

Run the script using the following command: node index.js

  1. Follow the prompts to enter the URL of your choice.

  2. The script will generate a QR code image and save it as new_qr.png.

  3. It will also save the input URL to link.txt.

    Example

  • Enter the URL when prompted: Enter the URL of your choice: https://example.com
  • The script will generate a QR code image (new_qr.png) and save the URL to link.txt. The file has been saved!

Output

  • QR Code Image: new_qr.png
  • Text File: link.txt
  • Feel free to customize the script to suit your specific needs or integrate it into your projects.

Contributions

Feel free to clone, fork, or modify the code to suit your needs. Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.

License

This project is licensed under the MIT License - see the LICENSE.md file for details.


Happy coding! 🧑‍💻