/QR-generator

Generates QR code as png

Primary LanguageJavaScript

QR Code Generator

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.

Installation

  1. Make sure you have Node.js installed on your system.

  2. Clone or download this repository.

  3. Navigate to the project directory in your terminal.

  4. Install dependencies by running:

    npm install
    

Usage

  1. 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.

Example

$ node index.js
? Enter URL: https://example.com
QR created!
The file has been saved!