Skip to content

Navigation Menu

Sign in
Sign up

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

About

wrapper for quencode

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

AltStyle によって変換されたページ (->オリジナル) /