MCPcopy Index your code
hub / github.com/Flagsmith/flagsmith / envToBool

Function envToBool

frontend/api/index.js:36–42  ·  view source on GitHub ↗
(name, defaultVal)

Source from the content-addressed store, hash-verified

34 `
35 }
36 const envToBool = (name, defaultVal) => {
37 const envVar = `${process.env[name]}`
38 if (envVar === 'undefined') {
39 return defaultVal
40 }
41 return envVar === 'true' || envVar === '1'
42 }
43 const sha = ''
44 /*
45 todo: implement across docker and vercel

Callers 1

index.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected