ilusm.dev

semv

semantic versioning: parse, compare, range matching (semver 2.0).

Load with: use semv

Quick example

use semv

result = semvp("value")
prn(result)

Functions

Functions

semvp(s)

Performs the operation. Takes s.

semvs(v)

Performs the operation. Takes v.

semvc(a, b)

Performs the operation. Takes a, b.

semvgt(a, b)

Performs the operation. Takes a, b.

semvlt(a, b)

Performs the operation. Takes a, b.

semveq(a, b)

Performs the operation. Takes a, b.

semvge(a, b)

Gets or retrieves a value. Takes a, b.

semvle(a, b)

Performs the operation. Takes a, b.

semvmj(v)

Performs the operation. Takes v.

semvmn(v)

Performs the operation. Takes v.

semvpt(v)

Performs the operation. Takes v.

semvok(s)

Performs the operation. Takes s.

semvtl(v)

Performs the operation. Takes v.

semvsr(vs)

Performs the operation. Takes vs.

semvmx(vs)

Performs the operation. Takes vs.

semvmi(vs)

Performs the operation. Takes vs.

Module aliases

These are the public-facing names you call with use semv:

  • semv.prs(s)
  • semv.str(v)
  • semv.cmp(a, b)
  • semv.gt(a, b)
  • semv.lt(a, b)
  • semv.eq(a, b)
  • semv.maj(v)
  • semv.min(v)
  • semv.pat(v)
  • semv.ok(s)
  • semv.sort(vs)
  • semv.max(vs)
  • semv.min(vs)

Notes

  • Semantic versioning - parse, compare, range checks.