Displays a QR code in your terminal. Supports inline images in iTerm2.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
images
lib
spec
.gitignore
.rspec
.rubocop.yml
CHANGELOG.md
Gemfile
Gemfile.lock
LICENSE
README.md
putqr.gemspec

README.md

putqr

Gem Version

Display a QR code in your terminal.

If you're using iTerm2 on macOS, the QR code will be displayed as an image.

Example: putqr https://example.com

Install

Install putqr from RubyGems:

gem install putqr

Usage

Run the putqr command with the string you want to encode, like:

putqr https://example.com/

Run the command without arguments to read the data from standard input:

putqr < example.txt

Development

To run the latest source code, check out the repository from GitHub:

git clone https://github.com/ljcooke/putqr.git

Install the dependencies using Bundler:

gem install bundler
bundle install

Run the tests and the putqr command using Bundler:

bundle exec rspec
bundle exec putqr