https://github.com/gialib/qrcode
qrcode for elixir
https://github.com/gialib/qrcode
elixir qrcode
Last synced: about 1 month ago
JSON representation
qrcode for elixir
- Host: GitHub
- URL: https://github.com/gialib/qrcode
- Owner: gialib
- Created: 2018-05-25T16:34:57.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-06-02T11:46:21.000Z (about 8 years ago)
- Last Synced: 2025-10-24T04:46:09.488Z (8 months ago)
- Topics: elixir, qrcode
- Language: Erlang
- Size: 31.3 KB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# QRCode
generate qrcode util
## Installation
by adding `qrcode` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[
{:qrcode, "~> 0.1.2"}
]
end
```
## Usage
```elixir
# save qrcode png to file "/Users/hello/tmp/helloworld.png"
QRCode.to_png_file("hello world", "/Users/hello/tmp/helloworld.png")
# save qrcode png to file "~/tmp/helloworld.png"
QRCode.to_png_file("hello world", "~/tmp/helloworld.png")
# save qrcode png to file "~/tmp/helloworld.png" with quiet_zone is 1
QRCode.to_png_file("hello world", "~/tmp/helloworld.png", quiet_zone: 1)
```