Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/carlosqsilva/vqrcode
CLI for creating QR codes
https://github.com/carlosqsilva/vqrcode
qr-code qr-generator qrcode qrcode-image qrcode-svg vlang
Last synced: 3 months ago
JSON representation
CLI for creating QR codes
- Host: GitHub
- URL: https://github.com/carlosqsilva/vqrcode
- Owner: carlosqsilva
- Created: 2022-08-04T18:17:05.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-18T17:37:18.000Z (12 months ago)
- Last Synced: 2024-05-03T08:31:59.718Z (6 months ago)
- Topics: qr-code, qr-generator, qrcode, qrcode-image, qrcode-svg, vlang
- Language: V
- Homepage:
- Size: 88.9 KB
- Stars: 21
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-v - vqrcode - CLI for creating QR Codes. (Applications / Command-line)
README
# vqrcode
CLI for creating QR codes### Examples
### Usage
```bash
vqrcode 'Testing' # print qrcode as ascii to console
vqrcode 'Testing' -s # print qrcode in svg
vqrcode 'Testing' -o ./qrcode.png # output qrcode to png file (only support png)
vqrcode 'Testing' -s > qrcode.svg # output qrcode to file
vqrcode 'Testing' -s | pbcopy # output qrcode to clipboard
vqrcode 'Testing' -s -l ./logo.png | pbcopy # output qrcode with custom logo to clipboard
vqrcode 'Testing' -l ./logo.png -o ./qrcode.png # output qrcode with custom logo to file
```
flags:
```
--ecl -e | Error correction level 0...3
--style | "round", "square" or "dot" (only svg support "round" and "dot" style)
--logo -l | path to image to embed on qrcode
--size | Size in pixels
--svg -s | Output in svg
--output -o | Output in png
```# Installation
## Homebrew
```bash
brew install carlosqsilva/brew/vqrcode
```## Install from source
#### 0) Install [vlang](https://vlang.io), and add to your `path`
#### 1) clone repo
```bash
git clone https://github.com/carlosqsilva/vqrcode.git
```
#### 2) change dir to `vqrcode`
```bash
cd vqrcode/
```
#### 3) build program
```bash
v -prod vqrcode.v
```
After that you will get a ready-made binary file in the root directory of the project.