Options
All
  • Public
  • Public/Protected
  • All
Menu

Module version

Index

Variables

ANY

ANY: object

Type declaration

BUILD

BUILD: number

BUILDIDENTIFIER

BUILDIDENTIFIER: number

CARET

CARET: number

CARETLOOSE

CARETLOOSE: number

CARETTRIM

CARETTRIM: number

COMPARATOR

COMPARATOR: number

COMPARATORLOOSE

COMPARATORLOOSE: number

COMPARATORTRIM

COMPARATORTRIM: number

FULL

FULL: number

FULLPLAIN

FULLPLAIN: string

GTLT

GTLT: number

HYPHENRANGE

HYPHENRANGE: number

HYPHENRANGELOOSE

HYPHENRANGELOOSE: number

LONECARET

LONECARET: number

LONETILDE

LONETILDE: number

LOOSE

LOOSE: number

LOOSEPLAIN

LOOSEPLAIN: string

MAINVERSION

MAINVERSION: number

MAINVERSIONLOOSE

MAINVERSIONLOOSE: number

MAX_LENGTH

MAX_LENGTH: number

MAX_SAFE_INTEGER

MAX_SAFE_INTEGER: number

NONNUMERICIDENTIFIER

NONNUMERICIDENTIFIER: number

NUMERICIDENTIFIER

NUMERICIDENTIFIER: number

NUMERICIDENTIFIERLOOSE

NUMERICIDENTIFIERLOOSE: number

PRERELEASE

PRERELEASE: number

PRERELEASEIDENTIFIER

PRERELEASEIDENTIFIER: number

PRERELEASEIDENTIFIERLOOSE

PRERELEASEIDENTIFIERLOOSE: number

PRERELEASELOOSE

PRERELEASELOOSE: number

R

R: number

STAR

STAR: number

TILDE

TILDE: number

TILDELOOSE

TILDELOOSE: number

TILDETRIM

TILDETRIM: number

XRANGE

XRANGE: number

XRANGEIDENTIFIER

XRANGEIDENTIFIER: number

XRANGEIDENTIFIERLOOSE

XRANGEIDENTIFIERLOOSE: number

XRANGELOOSE

XRANGELOOSE: number

XRANGEPLAIN

XRANGEPLAIN: number

XRANGEPLAINLOOSE

XRANGEPLAINLOOSE: number

caretTrimReplace

caretTrimReplace: string

comparatorTrimReplace

comparatorTrimReplace: string

expr

expr: any

numeric

numeric: RegExp

re

re: Array<any>

src

src: Array<any>

tildeTrimReplace

tildeTrimReplace: string

Functions

clean

  • clean(version: any, loose: any): any

cmp

  • cmp(a: any, op: any, b: any, loose: any): any

compare

  • compare(a: any, b: any, loose: any): any

compareIdentifiers

  • compareIdentifiers(a: any, b: any): number

compareLoose

  • compareLoose(a: any, b: any): any

diff

  • diff(version1: any, version2: any): any

eq

  • eq(a: any, b: any, loose?: any): boolean

gt

  • gt(a: any, b: any, loose: any): boolean

gte

  • gte(a: any, b: any, loose: any): boolean

gtr

  • gtr(version: any, range: any, loose: any): boolean

hyphenReplace

  • hyphenReplace($0: any, from: any, fM: any, fm: any, fp: any, fpr: any, fb: any, to: any, tM: any, tm: any, tp: any, tpr: any, tb: any): string
  • Parameters

    • $0: any
    • from: any
    • fM: any
    • fm: any
    • fp: any
    • fpr: any
    • fb: any
    • to: any
    • tM: any
    • tm: any
    • tp: any
    • tpr: any
    • tb: any

    Returns string

inc

  • inc(version: any, release: any, loose: any, identifier: any): any

isX

  • isX(id: any): boolean

lt

  • lt(a: any, b: any, loose: any): boolean

lte

  • lte(a: any, b: any, loose: any): boolean

ltr

  • ltr(version: any, range: any, loose: any): boolean

major

  • major(a: any, loose: any): any

maxSatisfying

  • maxSatisfying(versions: any, range: any, loose: any): any

minor

  • minor(a: any, loose: any): any

neq

  • neq(a: any, b: any, loose: any): boolean

outside

  • outside(version: any, range: any, hilo: any, loose: any): boolean

parse

  • parse(version?: any, loose?: any): any

parseComparator

  • parseComparator(comp: any, loose: any): any

patch

  • patch(a: any, loose: any): any

rcompare

  • rcompare(a: any, b: any, loose: any): any

rcompareIdentifiers

  • rcompareIdentifiers(a: any, b: any): number

replaceCaret

  • replaceCaret(comp: any, loose: any): any

replaceCarets

  • replaceCarets(comp: any, loose: any): any

replaceStars

  • replaceStars(comp: any, loose: any): any

replaceTilde

  • replaceTilde(comp: any, loose: any): any

replaceTildes

  • replaceTildes(comp: any, loose: any): any

replaceXRange

  • replaceXRange(comp: any, loose: any): any

replaceXRanges

  • replaceXRanges(comp: any, loose: any): any

rsort

  • rsort(list: any, loose: any): any

satisfies

  • satisfies(version: any, range: any, loose: any): any

sort

  • sort(list: any, loose: any): any

testSet

  • testSet(set: any, version: any): boolean

toComparators

  • toComparators(range: any, loose: any): any

valid

  • valid(version: any, loose: any): any

validRange

  • validRange(range: any, loose: any): any