Print Unicode-friendly QR Codes® straight in your terminal!
$ make
Build dependencies
- libqrencode
$ apt-get install libqrencode-dev
$ brew install qrencode
$ git clone https://github.com/fukuchi/libqrencode.git && cd libqrencode $ ./configure --prefix=/usr/local $ make # make install
# make install
or
$ sudo PREFIX=/usr/local make install
$ docker build -t y2z/qr .
$ sudo install -b utils/qr.sh /usr/local/bin/qr
$ pkg install qr
or
$ cd /usr/ports/textproc/qr/
$ make install clean
$ qr "Hello"
or
$ echo -n "Hello" | qr
Usage: qr [OPTIONS] STRING
or: cat FILE | qr [OPTIONS]
Options:
-m QR mode [na8k] (n = number, a = alphabet, 8 = 8-bit, k = Kanji)
-v QR version [1-40]
-e QR EC level [lmqh] or [1-4]
-l use two characters per block
-c compact mode
-b border width [1-4] (the default is 1)
-i invert colors
-p force colorless output
-h print help info and exit
-V print version info and exit
# make uninstall
$ make test
Test dependencies
- autoconf
$ apt-get install autoconf
$ brew install autoconf
- zbar
$ apt-get install zbar-tools
$ brew install zbar
- imagemagick
$ apt-get install imagemagick
$ brew install imagemagick
- FreeMono font
$ apt-get install fonts-freefont-ttf
$ brew tap homebrew/cask-fonts $ brew install --cask font-freefont
QR Code is a registered trademark of DENSO WAVE INCORPORATED in Japan and other countries.
To the extent possible under law, the author(s) have dedicated all copyright related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty.