ExLicense (ExLicense v0.1.0)

Documentation for ExLicense.

Link to this section Summary

Functions

Return the SPDX License identifier

Link to this section Types

Link to this type

available_license()

Specs

available_license() ::
  :mit | :agpl_v3 | :gpl_v3 | :lgpl_v3 | :mozilla_v2 | :apache_v2 | :boost_v1

Link to this section Functions

Specs

spdx_id(available_license()) :: String.t()

Return the SPDX License identifier

examples

Examples

iex> ExLicense.spdx_id(:mit)
"MIT"

iex> ExLicense.spdx_id(:agpl_v3)
"AGPL-3.0-or-later"