Description
CLI and library to generate QR codes.
Description
Generate QR codes from input string. Comes with CLI and as a library.
README.md
kewar
(pronounced qr)
Generate QR code from given input string
Installation
cabal install exe:kewar
# or
cabal install lib:kewar
CLI
Example
$ kewar --error-correction=H "Hello World"
Usage
$ kewar [options] [INPUT]
kewar is a tool to generate QR codes from any supported string, utilizing an error correction level to allow data recovery.
For more information on QR codes: https://www.qrcode.com/en/
Options
-v --version print qr version
-h --help print this help
-e[LEVEL] --error-correction[=LEVEL] use error correction LEVEL for encoding. Defaults to Q
Library
module Main where
import Kewar (generate, CorrectionLevel(Q))
import MyModule (doStuff)
main = do
let input = "my string"
case generate input Q of
Left e -> print e
Right grid -> doStuff grid