Class Range

Hierarchy

Index

Constructor methods

Properties

Methods

Constructor methods

constructor(range: string, loose?: boolean): Range

Parameters

  • range: string
  • loose?: boolean optional

Returns

Range

Properties

public loose: boolean

public raw: string

public set: Array<SemVerModule.Comparator[]>

Methods

public format(): string

Returns

string

public inspect(): string

Returns

string

public parseRange(range: string): Comparator[]

Parameters

  • range: string

Returns

Comparator[]

public test(version: SemVer): boolean

Parameters

Returns

boolean

public toString(): string

Returns

string