Salta al contenuto principale
Versione: Successivo

Namespace: utils

Interfaces

Variables

TIMEFORMAT

Const TIMEFORMAT: "L LTS"

Defined in

packages/ui-components/src/utils/utils.ts:11

Functions

fileSizeSI

fileSizeSI(a, b?, c?, d?, e?): string

Parameters

NameType
anumber
b?Math
c?(p: number) => number
d?number
e?number

Returns

string

Defined in

packages/ui-components/src/utils/utils.ts:117


formatDate

formatDate(lastUpdate): string

Parameters

NameType
lastUpdatestring | number

Returns

string

Defined in

packages/ui-components/src/utils/utils.ts:58


formatDateDistance

formatDateDistance(lastUpdate): string

Parameters

NameType
lastUpdatestring | number | Date

Returns

string

Defined in

packages/ui-components/src/utils/utils.ts:62


formatLicense

formatLicense(license): string | undefined

Formats license field for webui.

See

https://docs.npmjs.com/files/package.json#license

Parameters

NameType
licenseany

Returns

string | undefined

Defined in

packages/ui-components/src/utils/utils.ts:22


formatRepository

formatRepository(repository): string | null

Formats repository field for webui.

See

https://docs.npmjs.com/files/package.json#repository

Parameters

NameType
repositoryany

Returns

string | null

Defined in

packages/ui-components/src/utils/utils.ts:46


getAuthorName

getAuthorName(authorName?): string

Parameters

NameType
authorName?string

Returns

string

Defined in

packages/ui-components/src/utils/utils.ts:96


getLastUpdatedPackageTime

getLastUpdatedPackageTime(uplinks?): string

For

component

Parameters

NameType
uplinksUpLinks

Returns

string

Defined in

packages/ui-components/src/utils/utils.ts:70


getRecentReleases

getRecentReleases(time?): Time[]

For

component

Parameters

NameType
timeTime

Returns

Time[]

last 3 releases

Defined in

packages/ui-components/src/utils/utils.ts:87


getUplink(upLinkName, packageName): string | null

Parameters

NameType
upLinkNamestring
packageNamestring

Returns

string | null

Defined in

packages/ui-components/src/utils/utils.ts:108