package qrc

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Qrc v0.2.0

Qrc encodes your data into QR codes. It has built-in QR matrix renderers for SVG, ANSI terminal and text.

See the quick start.

Library qrc

  • Qrc QR code encoder.
  • Qrc_fmt QR matrix text formatters.

Quick start

The following generates a QR code matrix for the given data bytes and outputs it as an SVG image on stdout.

let output_svg_qr data = match Qrc.encode data with
| None -> prerr_endline "Data capacity exceeded!"
| Some m -> print_endline (Qrc.Matrix.to_svg m)
OCaml

Innovation. Community. Security.