https://github.com/adrianomitre/otp_version
Elixir library for obtaining Erlang/OTP version in full resolution and, optionally, in Version-compatible format.
https://github.com/adrianomitre/otp_version
elixir erlang-otp library version-check version-checker versions
Last synced: 7 months ago
JSON representation
Elixir library for obtaining Erlang/OTP version in full resolution and, optionally, in Version-compatible format.
- Host: GitHub
- URL: https://github.com/adrianomitre/otp_version
- Owner: adrianomitre
- Created: 2020-09-12T17:25:38.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-07-24T13:19:51.000Z (about 4 years ago)
- Last Synced: 2025-03-21T11:11:17.653Z (7 months ago)
- Topics: elixir, erlang-otp, library, version-check, version-checker, versions
- Language: Elixir
- Homepage:
- Size: 41 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://github.com/adrianomitre/otp_version/actions) [](https://codecov.io/gh/adrianomitre/otp_version)
# OTPVersion
OTPVersion is an Elixir library for obtaining Erlang/OTP version in full resolution and, optionally, in [Version](https://hexdocs.pm/elixir/Version.html)-compatible format.
## Installation
Add `otp_version` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[
{:otp_version, "~> 0.1.0"}
]
end
```## Usage
Assuming Erlang/OTP 21.3.8.17:
```elixir
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.