项目作者: gialib

项目描述 :
qrcode for elixir
高级语言: Erlang
项目地址: git://github.com/gialib/qrcode.git
创建时间: 2018-05-25T16:34:57Z
项目社区:https://github.com/gialib/qrcode

开源协议:

下载


QRCode

generate qrcode util

Installation

by adding qrcode to your list of dependencies in mix.exs:

  1. def deps do
  2. [
  3. {:qrcode, "~> 0.1.2"}
  4. ]
  5. end

Usage

  1. # save qrcode png to file "/Users/hello/tmp/helloworld.png"
  2. QRCode.to_png_file("hello world", "/Users/hello/tmp/helloworld.png")
  3. # save qrcode png to file "~/tmp/helloworld.png"
  4. QRCode.to_png_file("hello world", "~/tmp/helloworld.png")
  5. # save qrcode png to file "~/tmp/helloworld.png" with quiet_zone is 1
  6. QRCode.to_png_file("hello world", "~/tmp/helloworld.png", quiet_zone: 1)