Packages

Elixir CAR (content archive) file support

Retired package: Deprecated - This library has been succeeded by the `:dasl` library. https://github.com/cometsh/elixir-dasl

Current section

Files

Jump to
car lib car.ex
Raw

lib/car.ex

defmodule CAR do
@moduledoc """
Tools for working with CAR files.
"""
@doc """
Decode a CAR into an Elixir struct.
"""
@spec decode(binary()) ::
{:ok, CAR.Archive.t()} | CAR.Decoder.header_error() | CAR.Decoder.block_error()
def decode(binary), do: CAR.Decoder.decode(binary)
end