Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
class EmVer
import { EmVer } from "https://deno.land/x/embassyd_sdk@v0.3.4.3.0-alpha1/lib/esm/emver-lite/mod.js";

EmVer is a set of versioning of any pattern like 1 or 1.2 or 1.2.3 or 1.2.3.4 or ..

Constructors

new
EmVer(values)

Methods

compare(other)

Return a enum string that describes (used for switching/iffs) to know comparison

Used when sorting emver's in a list using the sort method

equals(other)
lessThan(other)

Used when we need a new emver that has the last number incremented, used in the 1.* like things

Static Methods

from(range)

Convert the range, should be 1.2.* or * into a emver Or an already made emver IsUnsafe

parse(range)

Convert the range, should be 1.2.* or * into a emver IsUnsafe