https://github.com/dev800/elixir-qrcode
https://github.com/dev800/elixir-qrcode
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/dev800/elixir-qrcode
- Owner: dev800
- Created: 2019-06-11T05:41:25.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-06-11T06:28:35.000Z (about 7 years ago)
- Last Synced: 2025-10-21T18:54:23.049Z (8 months ago)
- Language: Erlang
- Size: 29.3 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
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"}
]
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)
```