Skip to content
This repository has been archived by the owner on May 29, 2020. It is now read-only.

lamassu/elm-qrcode

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QR Code

QR Code encoder and renderer. Demo.

Basic Usage

import QRCode

qrCode : Html msg
qrCode =
    let
        resultQRCode = QRCode.toSvg "Hello world"

    in
        case resultQRCode of
            Result.Ok view -> view
            Result.Err err -> Html.text (toString err)

If you would like more functionalities, please open an issue on github.

Changelog

  • 1.1.0
    • Add toSvgWithECLevel;
    • Expose ECLevel;
    • Thanks again @joshmh!
  • 1.0.2
  • 1.0.1
    • Refactored encoder to use bitwise operations instead of string manipulation;
    • Refactored matrix to use bitwise operations instead of string manipulation;
    • Dropped ParseInt dependence;
    • Perfomance improvements.

Thanks

Thank you Carolyn Eby, for creating this great tutorial on how QR Code works.

Thank you Evan for bringing joy to the frontend.