MCPcopy Create free account
hub / github.com/TanStack/cli / envBoolean

Function envBoolean

packages/cli/tests-e2e/helpers.ts:295–303  ·  view source on GitHub ↗
(name: string, defaultValue: boolean)

Source from the content-addressed store, hash-verified

293}
294
295function envBoolean(name: string, defaultValue: boolean) {
296 const value = process.env[name]
297 if (value == null) {
298 return defaultValue
299 }
300
301 const normalized = value.trim().toLowerCase()
302 return normalized === '1' || normalized === 'true' || normalized === 'yes'
303}
304
305const IMAGE_GLOB = '**/*.{png,jpg,jpeg,gif,webp,avif,ico}'
306const FONT_GLOB = '**/*.{woff,woff2,ttf,otf,eot}'

Callers 2

optimizePageForFastE2EFunction · 0.85
logTimingsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected