Skip to content

Retasusan/qrg

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

qrg

A Simple QRCode Generator.

Installation

go install github.com/rokuosan/qrg@latest

Usage

qrg <text>

Options

  • --format : Specify the datetime format. The default is the Go format 20060102_150405.
  • -c --clipboard : Save the QR code to the clipboard instead of a file.
  • -o --output : Specify the output file name. (e.g. qrg -o qrcode.png "text")

Example

When you run the command, a PNG file with the date and time as the file name will be generated in the current directory.

Print the created file name to standard output.

$ qrg "https://example.com/"
20250118_20-42-26.png

On macOS, you can use the open command to view the generated QR code in the Preview app.

$ qrg "https://example.com/" | xargs open

If you want to save the QR code to your clipboard, you can use the --clipboard(-c) option.

$ qrg -c "https://example.com/"

License

This software is released under the MIT License, see LICENSE.

About

qrcode cli generator; run "qrg <message>" on your terminal.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Go 100.0%