Skip to content
/ qr Public

A lightweight QR encoder CLI and library

License

Notifications You must be signed in to change notification settings

chey/qr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

4ede3d8 · Mar 23, 2024

History

46 Commits
Mar 23, 2024
May 18, 2023
May 8, 2023
Mar 23, 2024
May 8, 2023
May 9, 2023
Mar 23, 2024
May 9, 2023
May 14, 2023
May 17, 2023
May 10, 2023
May 17, 2023
Mar 23, 2024
May 8, 2023
May 8, 2023
May 13, 2023
May 8, 2023

Repository files navigation

qr

Docker goreleaser Go Reference

A lightweight QR encoder CLI and library.

  • Simple to use
  • PNG support
  • Terminal support

Install and Use CLI

Using GO

go install github.com/chey/qr@latest

qr https://www.example.com

image

Docker

docker run --rm ghcr.io/chey/qr https://www.example.com

Brew

brew install chey/tap/qr

Other

See the releases page for other downloads.

Library usage

go get [-u] github.com/chey/qr

Example

This example prints a small QR code to the terminal using the lowest level of error correction.

package main

import (
    "github.com/chey/qr/code"
)

func main() {
    qr, _ := code.New("https://www.example.com", code.Low)
    qr.Print()
}