Skip to content

Function: positiveInt()

positiveInt(configured, input, fallback, options?): number

Resolve a positive integer (a port, a timeout, a page size), floored. A non-numeric or non-positive value is treated as ABSENT rather than fatal - these are ceilings where a sane default beats a boot failure.

unknown

ConfigKey

number

ConfigOptions

number