kewar: CLI and library to generate QR codes.

[ data, library, mit, program, qr ] [ Propose Tags ]

Generate QR codes from input string. Comes with CLI and as a library.


[Skip to Readme]

Modules

[Index] [Quick Jump]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.0.0, 0.1.1.0, 0.1.1.1 (info)
Change log CHANGELOG.md
Dependencies array (>=0.5 && <0.6), base (>=4.14 && <4.15), containers (>=0.6 && <0.7), kewar, split (>=0.2 && <0.3) [details]
License MIT
Copyright 2022 Manuel Spagnolo
Author Manuel Spagnolo
Maintainer Manuel Spagnolo <spagnolo.manu@gmail.com>
Category Data, QR
Uploaded by shikaan at 2022-02-12T18:05:35Z
Distributions
Executables kewar
Downloads 244 total (1 in the last 30 days)
Rating 2.0 (votes: 1) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]

Readme for kewar-0.1.1.1

[back to package description]

kewar

(pronounced qr)

Generate QR code from given input string

MIT license

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