Skip to content
/ qr Public
forked from Y2Z/qr

πŸ”² Generate textual QR codes using terminal

License

Notifications You must be signed in to change notification settings

gtbX/qr

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

23 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Travis CI Build Status

qr

Print Unicode-friendly QR codes straight in your terminal.

qr-screencast

How to build

$ make

Build dependencies

  • libqrencode
    Resolve on Ubuntu or Debian
    $ apt-get install libqrencode-dev
    
    Resolve on macOS
    $ brew install qrencode
    
    Build from source
    $ git clone https://github.com/fukuchi/libqrencode.git && cd libqrencode
    $ ./configure --prefix=/usr/local
    $ make
    # make install
    

How to install

# make install

or

$ sudo PREFIX=/usr/local make install

Usage

$ qr "Hello"

or

$ echo -n "Hello" | qr

Options

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
  -s  use 4 blocks per character
  -b  border width  [1-10] (the default is 2)
  -i  invert colors
  -p  force colorless output
  -h  print help (this message)

How to remove

# make uninstall

Running tests

$ make test

Test dependencies

  • autoconf
    Resolve on Ubuntu or Debian
    $ apt-get install autoconf
    
    Resolve on macOS
    $ brew install autoconf
    
  • zbar
    Resolve on Ubuntu or Debian
    $ apt-get install zbar-tools
    
    Resolve on macOS
    $ brew install zbar
    
  • imagemagick
    Resolve on Ubuntu or Debian
    $ apt-get install imagemagick
    
    Resolve on macOS
    $ brew install imagemagick
    
  • FreeMono font
    Resolve on Ubuntu or Debian
    $ apt-get install fonts-freefont-ttf
    
    Resolve on macOS
    $ brew tap homebrew/cask-fonts
    $ brew cask install font-freesans
    

Acknowledgements

QR Code is a registered trademark of DENSO WAVE INCORPORATED in Japan and other countries.

License

The Unlicense

About

πŸ”² Generate textual QR codes using terminal

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 78.5%
  • Makefile 21.5%