Skip to content

QR code generator creates two-dimensional barcodes that store information, such as URLs or text, enabling quick scanning by smartphones or other devices for efficient data retrieval. It simplifies information sharing and facilitates seamless access to digital content.

License

Notifications You must be signed in to change notification settings

adi1719/QR_Generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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! 🧑‍💻

About

QR code generator creates two-dimensional barcodes that store information, such as URLs or text, enabling quick scanning by smartphones or other devices for efficient data retrieval. It simplifies information sharing and facilitates seamless access to digital content.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published