CLI for creating QR codes
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
brew install carlosqsilva/brew/vqrcode
0) Install vlang, and add to your path
git clone https://github.com/carlosqsilva/vqrcode.git
cd vqrcode/
v -prod vqrcode.v
After that you will get a ready-made binary file in the root directory of the project.