Skip to content

narendranvelaga24/QR-Code-Generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QR-Code-Generator

A simple Node.js command-line application that generates a QR code image from a user-provided URL.

Features

  • Prompts the user to enter a URL via the terminal.
  • Generates a QR code image (qr_img.png) for the entered URL.
  • Saves the entered URL to a text file (URL.txt).

Prerequisites

  • Node.js (v14 or higher recommended)

Installation

  1. Clone this repository:
    git clone <repository-url>
    cd QR-Code-Generator
  2. Install dependencies:
    npm install

Usage

Run the application using Node.js:

node index.js
  • When prompted, enter the URL you want to convert into a QR code.
  • After completion, you will find:
    • qr_img.png: The generated QR code image.
    • URL.txt: The URL you entered, saved as plain text.

Dependencies

  • inquirer: For interactive command-line prompts.
  • qr-image: For generating QR code images.
  • fs: Node.js built-in module for file operations.

Author

Narendran

License

ISC

About

A simple Node.js command-line application that generates a QR code image from a user-provided URL.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published