1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00

qr: refresh page (#16266)

* Update qr.md

* Update qr.md

* Update pages/common/qr.md

Co-authored-by: Wiktor Perskawiec <git@spageektti.cc>

---------

Co-authored-by: Wiktor Perskawiec <git@spageektti.cc>
This commit is contained in:
Managor 2025-04-27 00:52:05 +03:00 committed by GitHub
parent c6543d045c
commit 09b85518cb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -5,8 +5,16 @@
- Generate a QR code:
`echo "{{data}}" | qr`
`qr "{{data}}"`
- Specify the error correction level (defaults to M):
- Specify the error correction level (defaults to `M`):
`echo "{{data}}" | qr --error-correction={{L|M|Q|H}}`
`qr --error-correction {{L|M|Q|H}} "{{data}}"`
- Generate a QR code from the output of another command:
`{{command}} | qr`
- Save the QR code as a PNG image:
`qr "{{data}}" > {{path/to/file.png}}`