Skip to content

carlosqsilva/vqrcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vqrcode

CLI for creating QR codes

Examples

Usage

pbpaste | vqrcode
pbpaste | vqrcode -s | pbcopy
pbpaste | vqrcode -s > qrcode.svg
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

brew install carlosqsilva/brew/vqrcode

Install from source

0) Install vlang, and add to your path

1) clone repo

git clone https://github.com/carlosqsilva/vqrcode.git

2) change dir to vqrcode

cd vqrcode/

3) build program

v -prod vqrcode.v

After that you will get a ready-made binary file in the root directory of the project.