Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/davidk/qrlink
Make a QR code for URLs (or really anything you can fit in the command) within your terminal
https://github.com/davidk/qrlink
cli qrcode
Last synced: about 2 months ago
JSON representation
Make a QR code for URLs (or really anything you can fit in the command) within your terminal
- Host: GitHub
- URL: https://github.com/davidk/qrlink
- Owner: davidk
- License: mit
- Created: 2023-08-06T07:08:26.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-08-13T17:47:36.000Z (over 1 year ago)
- Last Synced: 2023-08-13T18:57:58.382Z (over 1 year ago)
- Topics: cli, qrcode
- Language: Rust
- Homepage:
- Size: 23.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# qrlink
This utility encodes a URL / link into a QR code. Pre-built binaries for a [command-line interface](https://github.com/davidk/qrlink/releases) are available.
## Usage
`$ ./qrlink https://github.com/davidk/qrlink/releases/`
### To generate a QR code image
`$ ./qrlink https://github.com/davidk/qrlink/releases --imagefile releases.png`
![QR Code image](/img/releases.png)
### More options
```bash
USAGE:
qrlink [ https://example.com | --ask ] [ --imagefile (output_name.png) --scale 10 |
--svg | --svgfile (output_name.svg) ]FLAGS:
--svg Emit the QR code as an SVG (to standard output)
-a, --ask Ask for URL/link instead of getting it through the command-line
-h, --help Prints help information
-V, --version Prints version informationOPTIONS:
--scale QR code scaling factor. Applies to imagefile
output only. [default: 10]
--quietzone QR code: The size of the quiet zone/border to
apply to the final QR code [default: 2]
--imagefile The name of the file to save to (e.g. --imagefile qr.png).
Formats: [png, jpg, bmp]
--svgfile Save the QR code to a file (SVG formatted)ARGS:
URL (or text) to convert to a QR code```
#### Building
Pre-built releases are provided on GitHub, but for development, or to build your own from source (after installing the [Rust toolchain](https://www.rust-lang.org/tools/install):
cargo build --release
### See also
* [Format documentation, from zxing/zxing](https://github.com/zxing/zxing/wiki/Barcode-Contents)
* [qrcodegen, via project nayuki](https://docs.rs/crate/qrcodegen/1.4.0)