env/env_schemas.ts view source
(options?: EnvIntegerOptions | undefined): PipeSchema<number, StringSchema> import {env_integer} from '@fuzdev/fuz_app/env/env_schemas.js'; A whole number spelled in decimal digits, read the way the Rust spine reads
one (value.trim().parse::<u64>()): trimmed of Unicode White_Space (the
set Rust's trim strips, not String.prototype.trim's), then decimal
digits after at most one leading +, so a blank value, a -, a fraction,
an exponent (5e3), and hex (0x1F90) are refused, and +80 and leading
zeros (00080) are not. The number must be a safe integer within min and
max.
options?
the bounds, default 0 to Number.MAX_SAFE_INTEGER
returns
PipeSchema