Skip to content
err931Public

About

Elixir NIF wrapper for google/magika

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

24 Commits

Folders and files

Repository files navigation

MagikaEx Hex.pm Version Hex.pm Docs

MagikaEx is an Elixir wrapper for Magika, using Rustler.

This module is community-made and is NOT an official Google project.

Prerequisites

  • Elixir 1.18+
  • Erlang/OTP 28+
  • Rust 1.96.0+

Installation

The package can be installed by adding magika_ex to your list of dependencies in mix.exs:

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

Usage

iex> {:ok, result} = MagikaEx.identify_path("path/to/file")
...> IO.puts("Detected type: #{result.label}")

Support and Contribution

This module is experimental. I do not offer active support, so please use it at your own risk.

At this time, I am not accepting external contributions such as PRs or feature requests.

License

This project is licensed under the Apache License, Version 2.0.

Authors

About

Elixir NIF wrapper for google/magika

Resources

Stars

1 star

Watchers

0 watching

Forks

Used by

Contributors

Languages