Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

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.