Skip to content

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

Notifications You must be signed in to change notification settings

adrianomitre/otp_version

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages