Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pablohirafuji/elm-qrcode
QR Code in Elm
https://github.com/pablohirafuji/elm-qrcode
elm qrcode
Last synced: about 1 month ago
JSON representation
QR Code in Elm
- Host: GitHub
- URL: https://github.com/pablohirafuji/elm-qrcode
- Owner: pablohirafuji
- License: bsd-3-clause
- Created: 2017-03-02T11:46:09.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2022-06-26T16:06:07.000Z (over 2 years ago)
- Last Synced: 2024-05-21T12:12:21.969Z (7 months ago)
- Topics: elm, qrcode
- Language: Elm
- Homepage: http://package.elm-lang.org/packages/pablohirafuji/elm-qrcode/latest
- Size: 1.18 MB
- Stars: 42
- Watchers: 4
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# QR Code
QR Code encoding and rendering. [Demo](https://pablohirafuji.github.io/elm-qrcode/).
## Basic Usage
```elm
import Html exposing (Html)
import QRCode
import Svg.Attributes as SvgAqrCodeView : String -> Html msg
qrCodeView message =
QRCode.fromString message
|> Result.map
(QRCode.toSvg
[ SvgA.width "100px"
, SvgA.height "100px"
]
)
|> Result.withDefault (Html.text "Error while encoding to QRCode.")```
If you would like more functionalities, please open an issue on [GitHub](https://github.com/pablohirafuji/elm-qrcode/issues).
## Thanks
Thank you Carolyn Eby, for creating [this great tutorial](http://www.thonky.com/qr-code-tutorial/) on how QR Code works.
Thank you Evan for bringing joy to the frontend.