Class Comparator

Hierarchy

Index

Constructor methods

Properties

Methods

Constructor methods

constructor(comp: string, loose?: boolean): Comparator

Parameters

  • comp: string
  • loose?: boolean optional

Returns

Comparator

Properties

public loose: boolean

public operator: string

public raw: string

public semver: SemVer

public value: boolean

Methods

public format(): string

Returns

string

public inspect(): string

Returns

string

public parse(comp: string)

Parameters

  • comp: string

public test(version: SemVer): boolean

Parameters

Returns

boolean

public toString(): string

Returns

string