Skip to content

gabbensa/QR-Code-Generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

QR Code Generator

A simple Node.js command-line application that generates QR codes from user-provided URLs. The project uses inquirer for interactive prompts and qr-image to generate the QR code image.

πŸš€ Features

Prompt the user for a URL using an interactive CLI. Save the entered URL into a text file (URL.txt). Generate a QR code (qr_img.png) from the provided URL. Lightweight and easy to use.

πŸ“¦ Installation

Clone the repository and install dependencies: git clone https://github.com/your-username/qr-code-generator.git cd qr-code-generator npm install

πŸ›  Usage

Run the app with: node index.js Enter a URL when prompted. The program will: Save the URL to URL.txt. Generate a QR code image (qr_img.png) in the project folder.

πŸ“‚ Project Structure

. β”œβ”€β”€ index.js # Main application file β”œβ”€β”€ package.json # Project metadata and dependencies β”œβ”€β”€ package-lock.json β”œβ”€β”€ URL.txt # Stores the last entered URL β”œβ”€β”€ qr_img.png # Generated QR code image

πŸ“š Dependencies

inquirer – for user input prompts. qr-image – to generate QR codes. fs (Node.js built-in) – for file system operations

.

About

QR Code Generator by typing URL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published