Class SemVer

Hierarchy

Index

Constructor methods

Properties

Methods

Constructor methods

constructor(version: string, loose?: boolean): SemVer

Parameters

  • version: string
  • loose?: boolean optional

Returns

SemVer

Properties

public build: Array<string>

public loose: boolean

public major: number

public minor: number

public patch: number

public prerelease: Array<string>

public raw: string

public version: string

Methods

public compare(other: SemVer): number

Parameters

Returns

number

public compareMain(other: SemVer): number

Parameters

Returns

number

public comparePre(other: SemVer): number

Parameters

Returns

number

public format(): string

Returns

string

public inc(release: string): SemVer

Parameters

  • release: string

Returns

SemVer

public inspect(): string

Returns

string

public toString(): string

Returns

string