Barcoder screenshot

Elixir CI

Production-Ready Code 39 Barcode Generator

Features

Supported Characters

Usage Examples

# Basic ASCII output
{:ok, barcode} = BarcodeGenerator.generate("HELLO123")
IO.puts(barcode)

# SVG output for web use
{:ok, svg} = BarcodeGenerator.generate("PRODUCT001", format: :svg, width: 3, height: 50)
File.write!("barcode.svg", svg)

# Validate input
case BarcodeGenerator.validate_input("TEST123") do
  :ok -> IO.puts("Valid input")
  {:error, reason} -> IO.puts("Error: #{reason}")
end

Installation

If available in Hex, the package can be installed by adding barcoder to your list of dependencies in mix.exs:

def deps do
  [
    {:barcoder, "~> 0.1.0"}
  ]
end

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/barcoder.