Majic (Majic v1.0.0) View Source

Robust libmagic integration for Elixir.

Link to this section Summary

Functions

Perform on path.

Link to this section Types

Specs

name() :: {:pool, atom()} | {:server, Majic.Server.t()} | {:once, true}

Specs

Specs

result() :: {:ok, Majic.Result.t()} | {:error, term() | String.t()}

Specs

target() :: Path.t() | {:bytes, binary()}

Link to this section Functions

Specs

perform(target(), [option()]) :: result()

Perform on path.

An option of server: ServerName, pool: PoolName or once: true must be passed.