https://github.com/abdulhadishah/qr-code-generator
A Node.js CLI tool that generates QR codes from user input.
https://github.com/abdulhadishah/qr-code-generator
backend cli filesystem javascript nodejs npm qr-code
Last synced: 2 months ago
JSON representation
A Node.js CLI tool that generates QR codes from user input.
- Host: GitHub
- URL: https://github.com/abdulhadishah/qr-code-generator
- Owner: abdulhadishah
- Created: 2025-12-17T10:46:32.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2025-12-17T10:55:57.000Z (6 months ago)
- Last Synced: 2025-12-20T23:41:38.441Z (6 months ago)
- Topics: backend, cli, filesystem, javascript, nodejs, npm, qr-code
- Language: JavaScript
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# π³ QR Code Generator
A simple Node.js command-line application that generates a QR code from a user-provided URL and saves both the image and the original input locally.
## β¨ Technologies
- `Node.js`
- `JavaScript`
- `NPM`
- `Inquirer`
- `qr-image`
- `File System (fs)`
## π Features
- Command-line user input
- Generates a QR code image from a URL
- Saves the QR code as a PNG file
- Stores the original URL in a text file
- Uses Node.js built-in file system module
## π The Process
This project was built by applying concepts learned in **Section 22 and Section 23 of The Complete Full-Stack Web Development Bootcamp**.
Section 22 introduced backend fundamentals such as servers, web applications, and how data is handled outside the browser. In Section 23, Node.js was introduced as a JavaScript runtime that allows JavaScript to run independently of the browser.
Using this knowledge, the project uses the `inquirer` package to collect user input from the terminal, the `qr-image` package to generate a QR code, and Nodeβs native `fs` module to save both the generated image and the original URL locally. The project also reinforced working with NPM, ECMAScript modules, and the `type: module` configuration.
## π¦ Running the Project
1. Clone the repository
2. Install dependencies: `npm install`
3. Run the program: `node index.js`
4. Enter a URL when prompted
5. Find the generated QR code image and URL file in the project folder
## ποΈ Preview