10 releases
0.1.9 | Nov 15, 2023 |
---|---|
0.1.8 | Jan 2, 2022 |
0.1.7 | Jul 6, 2021 |
0.1.6 | Apr 11, 2021 |
0.1.0 | Jul 27, 2020 |
#516 in Command line utilities
42 downloads per month
26KB
486 lines
QRrs
CLI QR code generator and reader written in rust
Info
QRrs is a simple, cross-platform, command-line utility written in rust for working with qr codes (what actually follows from the name).
Usage
Quickly generate qr code
qrrs "Your input here"
Generate code, than read it
qrrs "Something" /tmp/qr.png
$ qrrs --read /tmp/qr.png
Something
Print generated code to term
qrrs -t "Something" /tmp/qr.png
█████████████████████████████
█████████████████████████████
████ ▄▄▄▄▄ █▄ █▄▄█ ▄▄▄▄▄ ████
████ █ █ █▀▄████ █ █ ████
████ █▄▄▄█ █ ▄█▀▄█ █▄▄▄█ ████
████▄▄▄▄▄▄▄█ ▀ ▀ █▄▄▄▄▄▄▄████
████▄███ █▄▄ ▄▀ ▀▄▄▄ █▀▄████
████▄ ▀█▀▄▄▀▄▀▀▄█▀▄█ █▄ ▀████
████▄█▄██▄▄▄▀▀▀█ ▄▀█ ▀█▄ ████
████ ▄▄▄▄▄ █▄▀▄▀ ▄▄▀ ██ █████
████ █ █ █▄█▀ ▀▄▄█ ▀▀ ▀████
████ █▄▄▄█ ██▀ ▄█▀ ▀ ████████
████▄▄▄▄▄▄▄█▄▄▄█▄▄▄▄█▄██▄████
█████████████████████████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
Show code as text in terminal
qrrs --read --terminal /tmp/qr.png
█████████████████████████████
█████████████████████████████
████ ▄▄▄▄▄ █▄ █▄▄█ ▄▄▄▄▄ ████
████ █ █ █▀▄████ █ █ ████
████ █▄▄▄█ █ ▄█▀▄█ █▄▄▄█ ████
████▄▄▄▄▄▄▄█ ▀ ▀ █▄▄▄▄▄▄▄████
████▄███ █▄▄ ▄▀ ▀▄▄▄ █▀▄████
████▄ ▀█▀▄▄▀▄▀▀▄█▀▄█ █▄ ▀████
████▄█▄██▄▄▄▀▀▀█ ▄▀█ ▀█▄ ████
████ ▄▄▄▄▄ █▄▀▄▀ ▄▄▀ ██ █████
████ █ █ █▄█▀ ▀▄▄█ ▀▀ ▀████
████ █▄▄▄█ ██▀ ▄█▀ ▀ ████████
████▄▄▄▄▄▄▄█▄▄▄█▄▄▄▄█▄██▄████
█████████████████████████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
Save it into another file
qrrs --read --terminal /tmp/qr.png /tmp/qr1.png
Almost the same result will be without terminal flag, but now instead of QrCode printed in terminal we will see text from it.
qrrs --read /tmp/qr.png /tmp/qr1.png
Create code using pipeline
Use "-" to signalize passing data via stdin.
$ echo "something" | qrrs - /tmp/something.png
$ qrrs -r /tmp/something.png
something
Invert colors
Create code specifying it's margin
Install
Nix
nix run github:Lenivaya/qrrs "your input"
From crates.io
cargo install qrrs
From github
cargo install --git https://github.com/Lenivaya/qrrs.git
Precompiled binaries
Dependencies
~21–32MB
~261K SLoC