MCPcopy Create free account
hub / github.com/effector/effector / booleanEnv

Function booleanEnv

tools/builder/utils.ts:35–53  ·  view source on GitHub ↗
(
  value: string | boolean | null | void,
  defaults: boolean,
)

Source from the content-addressed store, hash-verified

33}
34
35export function booleanEnv(
36 value: string | boolean | null | void,
37 defaults: boolean,
38): boolean {
39 switch (value) {
40 case 'no':
41 case 'false':
42 case false:
43 return false
44 case 'yes':
45 case 'true':
46 case true:
47 return true
48 case null:
49 case undefined:
50 default:
51 return defaults
52 }
53}
54
55export function publishScript(name: string) {
56 const onCatch = (error: any) => {

Callers 1

onCatchFunction · 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…