Skip to content

Prints a qr code generated from zxing to the terminal

Notifications You must be signed in to change notification settings

Auties00/QrToTerminal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Qr code to terminal

What is qr to terminal

Qr to terminal is a simple library to print qr codes generate using zxing to the terminal. I wrote this library because there are equivalents for other programming languages, but I couldn't find any good one for Java. Requires at least Java 11. Inspired by this thread.

How to install

Maven

<dependency>
    <groupId>com.github.auties00</groupId>
    <artifactId>qr-terminal</artifactId>
    <version>2.1</version>
</dependency>

Gradle

  1. Groovy DSL

    implementation 'com.github.auties00:qr-terminal:2.1'
  2. Kotlin DSL

    implementation("com.github.auties00:qr-terminal:2.1")

How to use

  1. Full size ANSI blocks

    QrTerminal.print(matrix, false);

  2. UTF-8 small blocks (recommended)

    QrTerminal.print(matrix, true);

About

Prints a qr code generated from zxing to the terminal

Topics

Resources

Stars

Watchers

Forks

Languages