MCPcopy Create free account
hub / github.com/ChromeDevTools/devtools-frontend / getEnvBoolean

Function getEnvBoolean

scripts/env-utils.mjs:20–28  ·  view source on GitHub ↗
(variable, fallback)

Source from the content-addressed store, hash-verified

18 * @returns {boolean}
19 */
20export function getEnvBoolean(variable, fallback) {
21 if (process.env[variable] === 'true') {
22 return true;
23 }
24 if (process.env[variable] === 'false') {
25 return false;
26 }
27 return fallback;
28}
29
30/**
31 * @param {string} variable

Callers 1

run_start.mjsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected