Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shikaan/kewar
Generate QR codes from a string in the terminal
https://github.com/shikaan/kewar
qrcode
Last synced: about 4 hours ago
JSON representation
Generate QR codes from a string in the terminal
- Host: GitHub
- URL: https://github.com/shikaan/kewar
- Owner: shikaan
- License: mit
- Created: 2022-01-16T16:04:24.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-02-10T22:44:57.000Z (about 3 years ago)
- Last Synced: 2024-12-20T15:44:45.439Z (about 2 months ago)
- Topics: qrcode
- Language: Haskell
- Homepage:
- Size: 112 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# kewar
(pronounced qr)Generate QR code from given input string
[![MIT license](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
## Installation
```
cabal install exe:kewar# or
cabal install lib:kewar
```## CLI
### Example
```bash
$ kewar --error-correction=H "Hello World"
```### Usage
```bash
$ 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
```haskell
module Main whereimport 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
```