Auties00 / QrToTerminal

Prints a qr code generated from zxing to the terminal

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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


Languages

Language:Java 100.0%