MCPcopy Create free account
hub / github.com/thetarnav/solid-devtools / is_env_truthy

Function is_env_truthy

build_shared.ts:4–12  ·  view source on GitHub ↗
(value: string | undefined)

Source from the content-addressed store, hash-verified

2import * as esb from 'esbuild'
3
4function is_env_truthy(value: string | undefined): boolean {
5 if (!value) return false
6 value = value.toLowerCase().trim()
7 return value === 'true'
8 || value === '"1"'
9 || value === '1'
10 || value === 'yes'
11 || value === 'y'
12}
13
14export const CI = is_env_truthy(process.env['CI'])
15 || is_env_truthy(process.env['GITHUB_ACTIONS'])

Callers 1

build_shared.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…