Skip to content

jkthorne/qrencode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

qrencode

A library to convert text or data to a QR Code

Installation

  1. Dependencies

    install qrencode

    a. MacOS

    brew install qrencode

    b. Ubuntu

    sudo apt install qrencode
  2. Add the dependency to your shard.yml:

    dependencies:
      qrencode:
        github: wontruefree/qrencode
  3. Run shards install

Usage

Quickstart

require "qrencode"

QR.print("this is a smoke test")

Construct Object

require "qrencode"

qr_code = QR.encode("this is a smoke test")
qr_code.level = 3
qr_code.print

Demo

asciicast

Contributors