qr-tools

command module
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 7, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

README

qr-tools

A command-line QR code generator and reader tool written in Go. This tool allows you to generate QR codes, read QR codes from images, and display QR codes directly in your terminal.

Features

  • Generate QR code images from text/URL content
  • Read QR codes from image files (supports PNG, JPEG)
  • Display QR codes directly in terminal
  • Command-line interface with multiple options

Installation

# Clone the repository
git clone https://github.com/walle-soft/qr-tools.git

# Navigate to the directory
cd qr-tools

# Build the project
go build

Usage

Generate QR Code Image
./qrcode -g -c "content" [-f filename.png]
Display Existing QR Code Image
./qrcode -d -f image.png
Directly Display QR Code in Terminal
./qrcode -d -c "content"
Command Options
  • -g: Generate QR code image
  • -d: Display QR code
  • -c: Content for QR code
  • -f: File path for input/output image

Examples

  1. Generate a QR code image:
./qrcode -g -c "https://example.com" -f test.png
  1. Read and display a QR code from an image:
./qrcode -d -f test.png
  1. Display content as QR code in terminal:
./qrcode -d -c "Hello, World!"

Dependencies

License

This project is licensed under the Apache License 2.0 - see the

LICENSE

file for details.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL