OSSIntel logo OSSIntel
Version 0.1.3API DocsFunctions

logScale()

Updated 2 Nov 2026

logScale(value, multiplier, max?): number

Defined in: scoring/src/utils.ts:12

Calculates a bounded logarithmic score: score = min(max, log10(value + 1) * multiplier)

Parameters

value

number

The input metric count (e.g. downloads, stars, reputation)

multiplier

number

Scaling factor for log10

max?

number = MAX_SCORE

Upper bound cap (defaults to MAX_SCORE = 100)

Returns

number

Scaled score (0 to max)

On this page