https://github.com/rs/qrinfo
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/rs/qrinfo
- Owner: rs
- Created: 2024-09-19T06:06:06.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-09-19T06:58:03.000Z (over 1 year ago)
- Last Synced: 2025-03-28T21:02:47.919Z (about 1 year ago)
- Language: Go
- Size: 8.79 KB
- Stars: 10
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# QRCode Info Reader
The `qrinfo` command outputs the contents of a QR code along with its encoding parameters.
```
$ qrinfo /path/to/image.png
Data: some QRCode example
Version: 3
ECC: H
Mask: 3
Data Type: Byte
ECI: ISO-8859-1 (default)
```
## Install
Direct downloads are available through the [releases page](https://github.com/rs/qrinfo/releases/latest).
Using [homebrew](http://brew.sh/) on macOS (Go not required):
```
brew install rs/tap/qrinfo
```
From source:
```
go install github.com/rs/qrinfo@latest
```
## Usage
The `qrinfo` command supports multiple methods for providing the QR code image data:
### Command Line Argument
Pass the path to the image as the first and only argument:
```
qrinfo /path/to/image
```
### Standard Input
Send the image data via standard input:
```
qrinfo < /path/to/image
some-command | qrinfo
```
### Clipboard
If `qrinfo` is executed without arguments and no piped input, it will attempt to fetch image data from your clipboard, if available.