Skip to content

iMoeDev/QRGenerator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QRGenerator

Installation

Clone the repository:

git clone <repository-url>
cd <repository-folder>

Install dependencies:

npm install inquirer qr-image

Run the application:

node index.js

Usage

  1. The program will prompt you to enter a URL.
  2. Enter the desired URL when prompted.
  3. The program will:
    • Generate a QR code and save it as qr_img.png.
    • Save the URL in URL.txt.

Example

Input:

Type in your URL: https://example.com

Output:

  • A QR code image file named qr_img.png.
  • A text file named URL.txt containing the URL.

Error Handling

  • If the terminal does not support interactive prompts, you'll see:
    Prompt couldn't be rendered in the current environment.
    
  • If any other error occurs, the program will log the error message.

License

This project is open-source and free to use.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors