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
Name | Type |
---|---|
a | number |
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
Name | Type |
---|---|
lastUpdate | string | number |
Returns
string
Defined in
packages/ui-components/src/utils/utils.ts:58
formatDateDistance
▸ formatDateDistance(lastUpdate
): string
Parameters
Name | Type |
---|---|
lastUpdate | string | 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
Name | Type |
---|---|
license | any |
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
Name | Type |
---|---|
repository | any |
Returns
string
| null
Defined in
packages/ui-components/src/utils/utils.ts:46
getAuthorName
▸ getAuthorName(authorName?
): string
Parameters
Name | Type |
---|---|
authorName? | string |
Returns
string
Defined in
packages/ui-components/src/utils/utils.ts:96
getLastUpdatedPackageTime
▸ getLastUpdatedPackageTime(uplinks?
): string
For
componentParameters
Name | Type |
---|---|
uplinks | UpLinks |
Returns
string
Defined in
packages/ui-components/src/utils/utils.ts:70
getRecentReleases
▸ getRecentReleases(time?
): Time
[]
For
componentParameters
Name | Type |
---|---|
time | Time |
Returns
Time
[]
last 3 releases
Defined in
packages/ui-components/src/utils/utils.ts:87
getUplink
▸ getUplink(upLinkName
, packageName
): string
| null
Parameters
Name | Type |
---|---|
upLinkName | string |
packageName | string |
Returns
string
| null