MCPcopy Create free account
hub / github.com/EvoMap/evolver / envInt

Function envInt

src/config.js:5–10  ·  view source on GitHub ↗
(key, fallback)

Source from the content-addressed store, hash-verified

3// Groups: network, solidify, evolution, ops, limits.
4
5function envInt(key, fallback) {
6 const v = process.env[key];
7 if (v === undefined || v === '') return fallback;
8 const n = parseInt(v, 10);
9 return isNaN(n) ? fallback : n;
10}
11
12// Strict variant for timing / timeout / interval values that must be
13// positive. Rejects: NaN (e.g. "5min" silently parses to 5 -- here 5 is

Callers 3

config.test.jsFile · 0.85
ops.test.jsFile · 0.85
config.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected