Table of Contents

Class SemVerRange

Namespace
Nite.Packages
Assembly
Nite.dll

An npm version range: ^1.2.3, ~1.2, >=1 <2, 1.x, 1.2.3 - 2, * and || unions of those. Prerelease versions only match when a comparator in the same set names a prerelease on the same major.minor.patch, as in node-semver.

public sealed class SemVerRange
Inheritance
SemVerRange
Inherited Members

Properties

Text

public string Text { get; }

Property Value

string

Methods

IsSatisfiedBy(SemVersion)

public bool IsSatisfiedBy(SemVersion version)

Parameters

version SemVersion

Returns

bool

MaxSatisfying(IEnumerable<SemVersion>)

public SemVersion? MaxSatisfying(IEnumerable<SemVersion> versions)

Parameters

versions IEnumerable<SemVersion>

Returns

SemVersion

Parse(string)

public static SemVerRange Parse(string text)

Parameters

text string

Returns

SemVerRange

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.

TryParse(string?, out SemVerRange?)

public static bool TryParse(string? text, out SemVerRange? range)

Parameters

text string
range SemVerRange

Returns

bool