adrianomitre / otp_version

Elixir library for obtaining Erlang/OTP version in full resolution and, optionally, in Version-compatible format.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Actions Status codecov

OTPVersion

OTPVersion is an Elixir library for obtaining Erlang/OTP version in full resolution and, optionally, in Version-compatible format.

Installation

Add otp_version to your list of dependencies in mix.exs:

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

Usage

Assuming Erlang/OTP 21.3.8.17:

iex(1)> System.otp_release()  
"21"
iex(2)> OTPVersion.otp_version()
"21.3.8.17"
iex(3)> OTPVersion.otp_version(:semantic_versioning_scheme)
"21.3.8"

Documentation and more examples can be found at https://hexdocs.pm/otp_version.

About

Elixir library for obtaining Erlang/OTP version in full resolution and, optionally, in Version-compatible format.


Languages

Language:Elixir 100.0%